From 110401d21e7115ba4dcc85791808f6080a901a64 Mon Sep 17 00:00:00 2001 From: Faruk Erat <92527106+FarukErat@users.noreply.github.com> Date: Wed, 2 Mar 2022 13:58:55 +0300 Subject: [PATCH] Update random_moves.hpp --- random_moves.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/random_moves.hpp b/random_moves.hpp index 8b3c18b..6024f46 100644 --- a/random_moves.hpp +++ b/random_moves.hpp @@ -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; }