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. |
Color of player in two-player games (black/white).
Definition in file SgBlackWhite.h.
#define SG_ASSERT_BW | ( | c | ) | SG_ASSERT(SgIsBlackWhite(c)) |
Definition at line 30 of file SgBlackWhite.h.
Referenced by SgNode::AddMoveProp(), SgProp::IsPlayer(), SgBWIterator::operator++(), SgBWArray< T >::operator[](), SgBW(), SgOppBW(), SgSearchValue::SgSearchValue(), SgTimeRecord::TimeLeft(), and SgSearchValue::ValueForPlayer().
typedef int SgBlackWhite |
SG_BLACK or SG_WHITE.
Definition at line 23 of file SgBlackWhite.h.
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 | ) |
Definition at line 32 of file SgBlackWhite.h.
References SG_ASSERT_BW, SG_BLACK, and SG_WHITE.
Referenced by SgPropPlayer::ChangeToOpponent(), SgMiaiMap::ExecuteMove(), SgBWIterator::Opp(), and SgOpp().
const int SG_BLACK = 0 |
Black stone, black player.
Definition at line 14 of file SgBlackWhite.h.
Referenced by SgNode::AddMoveProp(), SgBWSet::AssertDisjoint(), SgBWSet::BothContain(), SgBWSet::BothEmpty(), SgPropPlayer::FromString(), SgTimeRecord::GetOTMovesFromTree(), SgTimeRecord::GetTimeFromTree(), SgNode::NodePlayer(), SgBWSet::OneContains(), operator<<(), SgBWSet::operator==(), SgBWArray< T >::operator==(), SgEBWArray< T >::operator[](), SgBWSet::operator|=(), SgBalancer::Play(), SgProp::Player(), SgTimeRecord::SetTimeInTree(), SgBW(), SgBWArray< T >::SgBWArray(), SgEBW(), SgEBWArray< T >::SgEBWArray(), SgIsBlackWhite(), SgIsEmptyBlackWhite(), and SgOppBW().
const int SG_WHITE = 1 |
White stone, white player.
Definition at line 17 of file SgBlackWhite.h.
Referenced by SgBWSet::AssertDisjoint(), SgBWSet::BothContain(), SgBWSet::BothEmpty(), SgPropPlayer::FromString(), SgTimeRecord::GetOTMovesFromTree(), SgTimeRecord::GetTimeFromTree(), SgNode::NodePlayer(), SgBWSet::OneContains(), SgBWIterator::operator bool(), operator<<(), SgBWSet::operator==(), SgBWArray< T >::operator==(), SgEBWArray< T >::operator[](), SgBWSet::operator|=(), SgBalancer::Play(), SgProp::Player(), SgProp::PlayerProp(), SgTimeRecord::SetTimeInTree(), SgSearchValue::SetValueForPlayer(), SgBWArray< T >::SgBWArray(), SgEBWArray< T >::SgEBWArray(), SgIsBlackWhite(), SgIsEmptyBlackWhite(), SgOpp(), SgOppBW(), SgPropPlayer::ToString(), SgSearchTracer::TraceValue(), and SgSearchValue::ValueForPlayer().