Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Classes | Defines | Typedefs | Functions | Variables

SgBlackWhite.h File Reference

Color of player in two-player games (black/white). More...

#include <boost/static_assert.hpp>

Go to the source code of this file.

Classes

class  SgBWIterator
 Iterator over both colors, Black and White. More...

Defines

#define SG_ASSERT_BW(c)   SG_ASSERT(SgIsBlackWhite(c))

Typedefs

typedef int SgBlackWhite
 SG_BLACK or SG_WHITE.

Functions

 BOOST_STATIC_ASSERT (SG_BLACK+1==SG_WHITE)
bool SgIsBlackWhite (int c)
SgBlackWhite SgOppBW (SgBlackWhite c)
char SgBW (SgBlackWhite color)

Variables

const int SG_BLACK = 0
 Black stone, black player.
const int SG_WHITE = 1
 White stone, white player.

Detailed Description

Color of player in two-player games (black/white).

Definition in file SgBlackWhite.h.


Define Documentation

#define SG_ASSERT_BW (   c  )     SG_ASSERT(SgIsBlackWhite(c))

Typedef Documentation

typedef int SgBlackWhite

SG_BLACK or SG_WHITE.

Definition at line 23 of file SgBlackWhite.h.


Function Documentation

BOOST_STATIC_ASSERT ( SG_BLACK 1 = =SG_WHITE  ) 
char SgBW ( SgBlackWhite  color  ) 

Definition at line 38 of file SgBlackWhite.h.

References SG_ASSERT_BW, and SG_BLACK.

Referenced by SgSearch::CallExecute(), operator<<(), and SgStrategy::Write().

bool SgIsBlackWhite ( int  c  ) 

Definition at line 25 of file SgBlackWhite.h.

References SG_BLACK, and SG_WHITE.

Referenced by SgBalancer::Play().

SgBlackWhite SgOppBW ( SgBlackWhite  c  ) 

Variable Documentation

const int SG_BLACK = 0
const int SG_WHITE = 1


Sun Mar 13 2011 Doxygen 1.7.1