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>
33 return canIgnore<Moving>(move.
ptype(), move.
from(), move.
to());
38 template <Player Moving>
41 return (! move.
isDrop()) && canIgnoreMove<Moving>(move);
46 return canIgnoreAndNotDrop<BLACK>(move);
48 return canIgnoreAndNotDrop<WHITE>(move);
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していない)かのチェック