Determines whether to swap in the current game state. More...
Functions | |
bool | PlaySwap (const Game &game, HexColor toPlay) |
If first move of game has been played and swap rule is being used, checks hardcoded swap rules and returns true if swap should be played. |
Determines whether to swap in the current game state.
If first move of game has been played and swap rule is being used, checks hardcoded swap rules and returns true if swap should be played.
Definition at line 72 of file SwapCheck.cpp.
References Game::AllowSwap(), Game::Board(), StoneBoard::Const(), FIRST_TO_PLAY, StoneBoard::Height(), HexAssert, Game::History(), LogInfo(), BoardUtils::Mirror(), StoneBoard::NumStones(), VERTICAL_COLOR, and StoneBoard::Width().
Referenced by WolveEngine::GenMove(), MoHexEngine::GenMove(), and BenzeneTestEngine::GenMove().