diff options
Diffstat (limited to 'ttt.c')
| -rw-r--r-- | ttt.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -106,9 +106,9 @@ int get_game_state(int boardState[3][3]) { } int* user_input_pos(int boardState[3][3], int turn) { int* ip = malloc(2 * sizeof(int)); - printf("Enter X coordinate"); + printf("Enter X coordinate: "); scanf("%d", &ip[0]); - printf("Enter Y coordinate"); + printf("Enter Y coordinate: "); scanf("%d", &ip[1]); return ip; } @@ -185,6 +185,8 @@ int main() { break; } if(s == 3) { + clear_screen(); + draw_board(board); printf("Game is drawn!"); printf("\n"); break; |
