3#ifndef _SEARCH_SHOULDPROMOTECUT_H
4#define _SEARCH_SHOULDPROMOTECUT_H
22 return (ptype==
LANCE && (P==
BLACK ? to.
y()==2 : to.
y()==8)) ||
29 template <Player Moving>
38 template <Player Moving>
const Square from() const
bool isBetterToPromote(Ptype ptype) const
bool isPieceStand() const
int y() const
将棋としてのY座標を返す.
const PtypeTable Ptype_Table
bool isBasic(Ptype ptype)
ptypeが基本型(promoteしていない)かのチェック