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

Corrected some errors in method play

parent 4edef40c
No related branches found
No related tags found
No related merge requests found
......@@ -131,9 +131,9 @@ namespace game
void morpion::play(uint16_t m)
{
if (current_player() == CROSS)
state.cross_bitboard += (1 << m);
state.cross_bitboard |= (((uint16_t) 1) << m);
else
state.circle_bitboard += (1 << m);
state.circle_bitboard |= (((uint16_t) 1) << m);
//State update
state.total_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