Functions | |
std::string | ScoreToString (float score) |
Convert a score from a float to a string. |
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().