Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

EndgameUtils.hpp File Reference

#include "Hex.hpp"
#include "HexBoard.hpp"
#include "HexEval.hpp"

Go to the source code of this file.

Namespaces

namespace  EndgameUtils
 

Utilities on endgames: detecting, playing, etc.


Functions

bool EndgameUtils::IsWonGame (const HexBoard &brd, HexColor color, bitset_t &proof)
 Returns true if color wins in this state.
bool EndgameUtils::IsWonGame (const HexBoard &brd, HexColor color)
bool EndgameUtils::IsLostGame (const HexBoard &brd, HexColor color, bitset_t &proof)
 Returns true if color loses in this state.
bool EndgameUtils::IsLostGame (const HexBoard &brd, HexColor color)
bool EndgameUtils::IsDeterminedState (const HexBoard &brd, HexColor color, HexEval &score, bitset_t &proof)
 Returns true if this is a winning/losing state for color (as defined by IsWonGame() and IsLostGame()), score is set to IMMEDIATE_WIN on win, IMMEDIATE_LOSS on a loss, or 0 otherwise.
bool EndgameUtils::IsDeterminedState (const HexBoard &brd, HexColor color, HexEval &score)
bool EndgameUtils::IsDeterminedState (const HexBoard &brd, HexColor color)
HexPoint EndgameUtils::PlayDeterminedState (const HexBoard &brd, HexColor color)
 Plays the "best" move in a determined state.
bitset_t EndgameUtils::MovesToConsider (const HexBoard &brd, HexColor color)
 Returns the set of moves that need to be considered from the given boardstate; that is, without the moves that we can provably ignore.

Detailed Description

Definition in file EndgameUtils.hpp.


6 Jan 2011 Doxygen 1.6.3