Skip to content
Snippets Groups Projects
Commit ffa7e07a authored by Bariatti Francesco's avatar Bariatti Francesco
Browse files

Implemented total_moves

parent 36c6d9bf
No related branches found
No related tags found
No related merge requests found
bin/
__pycache__/
......@@ -91,8 +91,7 @@ namespace game
/* Number of moves that you can play */
uint16_t penguin::number_of_moves() const
{
//return 9 - state.total_moves;
return 0;
return state.current_player_red ? state.nb_moves_red : state.nb_moves_blue;
}
/* The penguin that will move if we want to play the #move_number move in the list of possible moves.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment