From b2938395d128f41435b3323b21620035419bb9a5 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 10:58:48 +0100 Subject: [PATCH] add ga structure that holds the game informations --- src/main/c/Georg/tictactoe.c | 2 ++ src/main/c/Georg/tictactoe.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index 7134783..4b91348 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -3,6 +3,8 @@ #include "tictactoe.h" +struct ticTacToe TICTACTOE; + char* getWelcomeMessage(){ return "Hallo und willkommen zu unserem TicTacToe Spiel. Anbei die Anleitung:\n"; } diff --git a/src/main/c/Georg/tictactoe.h b/src/main/c/Georg/tictactoe.h index 72778f5..d8b2a20 100644 --- a/src/main/c/Georg/tictactoe.h +++ b/src/main/c/Georg/tictactoe.h @@ -1,6 +1,10 @@ #ifndef TICTACTOE_H #define TICTACTOE_H +struct ticTacToe{ + int currentState; +}; + char* getWelcomeMessage(); char* getRulesMessage();