Skip to content

Commit 260e487

Browse files
committed
fix: improve outputs
1 parent edf2c30 commit 260e487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/play/tic-tac-toe/utilities.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ unsigned char _playPlayer(Player *player, Board *board, int opponentAssignedForm
6666

6767
int winningValue;
6868

69-
printf("> In which position do you want to insert the \"%c\"? (Row / Column) ",
69+
printf("> In which position do you want to insert the \"%c\"? [Min: 1 | Max: 3] (Row, Column) ",
7070
getPlayerAssignedForm(player));
7171
fflush(stdin);
72-
fieldsRead = scanf("%d / %d", &row, &col);
72+
fieldsRead = scanf("%d , %d", &row, &col);
7373
puts("");
7474

7575
while (fieldsRead != 2 || row < 1 || row > getBoardRows(board) || col < 1 ||
7676
col > getBoardCols(board) || !isBoardPositionFree(board, row - 1, col - 1)) {
7777
puts("> Invalid position! Try again...\n");
7878

79-
printf("> In which position do you want to insert the \"%c\"? (Row / Column) ",
79+
printf("> In which position do you want to insert the \"%c\"? [Min: 1 | Max: 3] (Row, Column) ",
8080
getPlayerAssignedForm(player));
8181
fflush(stdin);
82-
fieldsRead = scanf("%d / %d", &row, &col);
82+
fieldsRead = scanf("%d , %d", &row, &col);
8383
puts("");
8484
};
8585

0 commit comments

Comments
 (0)