Checks book before search. More...
#include <VulPreCheck.hpp>
Public Member Functions | |
VulPreCheck () | |
Adds pre-check for vulnerable cells to the given player. | |
~VulPreCheck () | |
Destructor. | |
HexPoint | KillLastMove (HexBoard &brd, const Game &game_state, HexColor color) |
Checks to see if the last move played by the opponent is vulnerable. | |
Private Attributes | |
bitset_t | m_killedOpptStones |
Member variable to track which oppt stones we've killed before. |
Checks book before search.
Definition at line 12 of file VulPreCheck.hpp.
VulPreCheck::VulPreCheck | ( | ) |
Adds pre-check for vulnerable cells to the given player.
Definition at line 12 of file VulPreCheck.cpp.
VulPreCheck::~VulPreCheck | ( | ) |
Destructor.
Definition at line 17 of file VulPreCheck.cpp.
Checks to see if the last move played by the opponent is vulnerable.
If so, returns the killing move; otherwise, returns INVALID_POINT.
If we've killed this opponent stone, give it to ourselves. This often helps to find more vulnerable opponent moves.
If opponent's last move can be made unconditionally dead, this is preferable since we can treat it as such in the future, thereby finding more opponent vulnerable cells.
Definition at line 21 of file VulPreCheck.cpp.
References ICEngine::FindVulnerable(), HexBoard::Height(), HexAssert, Game::History(), HexBoard::ICE(), INVALID_POINT, LogWarning(), m_killedOpptStones, benzene_bitset< _Nb >::set(), benzene_bitset< _Nb >::test(), and HexBoard::Width().
bitset_t VulPreCheck::m_killedOpptStones [private] |
Member variable to track which oppt stones we've killed before.
Helps to identify more vulnerable patterns.
Definition at line 33 of file VulPreCheck.hpp.
Referenced by KillLastMove().