Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Functions

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 17 of file GoUtil.cpp.

Referenced by GoGtpEngine::CmdFinalScore().


Sun Mar 13 2011 Doxygen 1.7.1