Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUtil Namespace Reference


Functions

std::string ScoreToString (float score)
 Convert a score from a float to a string.


Function Documentation

std::string GoUtil::ScoreToString ( float  score  ) 

Convert a score from a float to a string.

The string representation is compatible to the one used in the SGF file format ant the GTP final_score command (e.g. W+2.5 if white wins, B+31 if black wins, and just 0 if the game ends in a draw).

Definition at line 18 of file GoUtil.cpp.

Referenced by GoGtpEngine::CmdFinalScore().


17 Jun 2010 Doxygen 1.4.7