Skip to content
Snippets Groups Projects
Commit f43dd341 authored by Gaste Adrien's avatar Gaste Adrien
Browse files

Modif function value Adr

parent 906e7ced
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 first_player_win? 1 : (second_player_win? -1 : 0)
}
else if (player == CIRCLE) {
return second_player_win? 1 : (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