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

Implemented playout function

parent c4140fcc
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ namespace game
{
while (!end_of_game())
{
uniform_int_distribution<uint16_t> distribution(0, number_of_moves() - 1);
uniform_int_distribution<uint16_t> distribution(0, 8-state.total_moves);
uint16_t move = distribution(engine);
play(move);
}
......
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