Skip to content

Commit

Permalink
Update random_moves.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FarukErat authored Mar 2, 2022
1 parent c4c62ce commit 110401d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion random_moves.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ coor Table::randomMoves()
}
srand(time(NULL));
random = rand() % moves.size(); // generates random numbers [0, count)
coor c = { moves[random][0], moves[random][1] };
coor c;
c.row = moves[random][0];
c.col = moves[random][1];
return c;
}

Expand Down

0 comments on commit 110401d

Please sign in to comment.