Skip to content
Snippets Groups Projects
Commit 566f9a27 authored by Romain Lebouc's avatar Romain Lebouc
Browse files
parents addad0a9 f1f853da
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,12 @@ namespace game
int morpion::value(uint8_t player) const
{
//TODO: Implement
if (player == CROSS) {
return state.first_player_win? 1 : (state.second_player_win? -1 : 0)
}
else if (player == CIRCLE) {
return state.second_player_win? 1 : (state.first_player_win? -1 : 0)
}
return 0;
}
......
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