From 7d052426ee6657a771b5e2cbf78034b86e4fc5e9 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 19:24:22 +0100 Subject: [PATCH] refactoring neue Funktion void drawBoard --- src/TicTacToe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TicTacToe.c b/src/TicTacToe.c index a2b1675..96e9e05 100644 --- a/src/TicTacToe.c +++ b/src/TicTacToe.c @@ -11,7 +11,11 @@ int main() { int pos7 = 7; int pos8 = 8; int pos9 = 9; - + + drawBoard(pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, pos9); +} + +void drawBoard(int pos1, int pos2, int pos3, int pos4, int pos5, int pos6, int pos7, int pos8, int pos9) { char vertical = '|'; char horizontal[] = "---";