移動元へのきき。attack defense は言葉の意味と逆で自分がattack
const Piece findCheapAttack(Player P, Square square) const
constexpr Player alt(Player player)
bool effectiveInCheck() const
FromEffect(int attack, int defense)
const Move lastMove(size_t last=1) const
const std::string & name() const
bool match(const NumEffectState &state, Move move, const RatingEnv &) const
bool hasEffectIf(PtypeO ptypeo, Square attacker, Square target) const
attackerにptypeoの駒がいると仮定した場合にtargetに利きがあるかどうか を stateをupdateしないで確かめる.
bool hasEffectAt(Square target) const
対象とするマスにあるプレイヤーの利きがあるかどうか.
const PtypeTable Ptype_Table
bool inCheck(Player P) const
Pの玉が王手状態
bool match(const NumEffectState &state, Square position, const RatingEnv &env) const
Ptype oldPtype() const
移動前のPtype, i.e., 成る手だった場合成る前
PtypeO ptypeO() const
移動後のPtype, i.e., 成る手だった場合成った後
bool isNormal() const
INVALID でも PASS でもない.
const Square from() const
bool match(const NumEffectState &state, Move move, const RatingEnv &) const
bool match(const NumEffectState &state, Move move, const RatingEnv &env) const
PtypeAttacked(Ptype s, Ptype a)
bool match(const NumEffectState &state, Move move, const RatingEnv &) const