Definition in file SgUtil.h.
#include <iostream>
#include "SgBlackWhite.h"
#include "SgBWArray.h"
Go to the source code of this file.
Namespaces | |
namespace | SgUtil |
Classes | |
class | SgBalancer |
Utility class to assure balance between black and white plays. More... | |
Functions | |
template<class T> | |
void | SgUtil::ForceInRange (const T &min, T *p, const T &max) |
template<class T> | |
bool | SgUtil::InRange (const T &i, const T &from, const T &to) |
template<class T> | |
void | SgUtil::LowerLimit (T &x, const T &limit) |
template<class T> | |
void | SgUtil::UpperLimit (T &x, const T &limit) |
std::ostream & | operator<< (std::ostream &stream, const SgBalancer &balancer) |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const SgBalancer & | balancer | |||
) |
Definition at line 13 of file SgUtil.cpp.
References SgBalancer::Balance(), SgBalancer::Margin(), SgBalancer::NuCalls(), SgBalancer::NuPlayed(), SgBalancer::NuRejected(), SG_BLACK, and SG_WHITE.