From 2107498e6bb3d070cb2aaee847fbb799bd32a4c2 Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 12:41:40 +0100 Subject: [PATCH] 2 display Board --- src/main/c/TicTacToe.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index e011caf..837e2a2 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -4,11 +4,18 @@ #include // Funktion, um das Spielfeld zu initialisieren -//1 void Brett(char Feld[3][3]) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { Feld[i][j] = '_'; } } +} +void Bild(char Feld[3][3]) { + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + printf("%c ", Feld[i][j]); + } + printf("\n"); + } } \ No newline at end of file