Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

VCUtils Namespace Reference

Utilities on VCs. More...

Functions

bitset_t GetMustplay (const HexBoard &brd, HexColor color)
 Returns mustplay for color to move.
bool ValidEdgeBridge (const StoneBoard &brd, const bitset_t &carrier, HexPoint &endpoint, HexPoint &edge)
 Returns true if carrier defines a valid bridge to the edge.

Detailed Description

Utilities on VCs.


Function Documentation

bitset_t VCUtils::GetMustplay ( const HexBoard brd,
HexColor  color 
)
bool VCUtils::ValidEdgeBridge ( const StoneBoard brd,
const bitset_t carrier,
HexPoint endpoint,
HexPoint edge 
)

Returns true if carrier defines a valid bridge to the edge.

Edge and the other endpoint are stored if it is valid.

Definition at line 39 of file VCUtils.cpp.

References ConstBoard::Adjacent(), BitsetUtil::BitsetToVector(), StoneBoard::Const(), benzene_bitset< _Nb >::count(), StoneBoard::GetOccupied(), HexAssert, HexPointUtil::isEdge(), MIAI_SIZE, and ConstBoard::Nbs().


6 Jan 2011 Doxygen 1.6.3