Some small cleanup and refactoring.
Update name of a few functions to best suit their usage. Split up checking for winning player and checking for game over state.
This commit is contained in:
parent
d54ccf3d2f
commit
5737ae31be
4 changed files with 21 additions and 14 deletions
|
@ -172,7 +172,7 @@ const char* tests()
|
|||
if (game.GetUnitByIndex(0).GetID() != id )
|
||||
return "Game killed the wrong unit";
|
||||
|
||||
if ( game.CheckForWin() != player_t::Blue )
|
||||
if ( game.GetWinningPlayer() != player_t::Blue )
|
||||
return "Game failed to recognise a win for the right Player";
|
||||
|
||||
std::string game_string = game.GetStateAsString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue