Added debug statements for endgame
This commit is contained in:
parent
ed46a272b8
commit
ed0d8c5e26
|
@ -225,11 +225,17 @@ bool GameData::endgame()
|
|||
if (get_colour(PLAYER1_COLOUR).empty())
|
||||
{
|
||||
player = WIN2;
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "debug: Gamedata::endgame(): player 2 wins\n");
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
if (get_colour(PLAYER2_COLOUR).empty())
|
||||
{
|
||||
player = WIN1;
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "debug: Gamedata::endgame(): player 1 wins\n");
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user