From 377cb89311fb4ddbb58840e19d02658db41f1ee8 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Tue, 22 Nov 2022 10:22:51 -0800 Subject: small interface improvements --- ttt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ttt.c b/ttt.c index 59181c1..308bf29 100644 --- a/ttt.c +++ b/ttt.c @@ -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; -- cgit v1.3.1