From b818175f9981c04ba8305d63726dc8f788649fac Mon Sep 17 00:00:00 2001 From: Aimee Reincke Date: Mon, 30 Jan 2023 10:40:19 +0100 Subject: [PATCH] added print prompt function --- src/c/ticTacToe.c | 4 ++++ src/c/ticTacToe.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/c/ticTacToe.c b/src/c/ticTacToe.c index 6d1d931..3f7c43f 100644 --- a/src/c/ticTacToe.c +++ b/src/c/ticTacToe.c @@ -7,4 +7,8 @@ int something(int a){ return a; +} + +void printPrompt(){ + printf("Let's play Tic Tac Toe. You will use O, I will use X.\nJust enter the number of the field you choose.\nYou start.\n"); } \ No newline at end of file diff --git a/src/c/ticTacToe.h b/src/c/ticTacToe.h index 964ee03..7c268b6 100644 --- a/src/c/ticTacToe.h +++ b/src/c/ticTacToe.h @@ -2,5 +2,6 @@ #define TICTACTOE_H int something(int a); +void printPrompt(); #endif \ No newline at end of file