16 static const int Max = 2;
int countEffect(Player player, Square target) const
利きの数を数える.
constexpr Player alt(Player player)
static bool hasEffect(const NumEffectState &, Square target, Player attack)
target に attack の追加利きが一つでもあるか. 相手の影利きが先にある場合は対象としない.
CountEffect2(int a, int d)
bool match(const NumEffectState &state, Square position, const RatingEnv &env) const
static std::pair< int, int > count(const NumEffectState &state, Square position, const RatingEnv &env)
static std::string name(int attack, int defense)
static int index(const NumEffectState &state, Square position, const RatingEnv &env)