Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

VulPreCheck Class Reference

Checks book before search. More...

#include <VulPreCheck.hpp>

List of all members.

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.

Detailed Description

Checks book before search.

Definition at line 12 of file VulPreCheck.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

HexPoint VulPreCheck::KillLastMove ( HexBoard brd,
const Game game_state,
HexColor  color 
)

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.

Todo:
Make this both colors (ie, dead) once PatternState supports stones of both colors.

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().


Member Data Documentation

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().


The documentation for this class was generated from the following files:


6 Jan 2011 Doxygen 1.6.3