Go to the documentation of this file.
3 #ifndef _COUNTEFFECT2_H
4 #define _COUNTEFFECT2_H
16 static const int Max = 2;
39 std::pair<int,int> ad =
count(state, position, env);
49 std::pair<int,int> ad =
count(state, position, env);
static bool hasEffect(const NumEffectState &, Square target, Player attack)
target に attack の追加利きが一つでもあるか. 相手の影利きが先にある場合は対象としない.
int min(Player p, int v1, int v2)
bool isOnBoard() const
盤面上を表すかどうかの判定. 1<=x() && x()<=9 && 1<=y() && y()<=9 Squareの内部表現に依存する.
constexpr Player alt(Player player)
static std::string name(int attack, int defense)
CountEffect2(int a, int d)
bool match(const NumEffectState &state, Square position, const RatingEnv &env) const
unsigned int index() const
static int index(const NumEffectState &state, Square position, const RatingEnv &env)
CArray< signed char, Square::SIZE > counteffect2_cache
static std::pair< int, int > count(const NumEffectState &state, Square position, const RatingEnv &env)
int countEffect(Player player, Square target) const
利きの数を数える.