From 228ca00db31b3a2810f9c65c1f2671594f07a69f Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 14:02:20 +0100 Subject: [PATCH] Spielfeld erstellen --- src/TicTacToe.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/TicTacToe.c b/src/TicTacToe.c index 0852bce..b703463 100644 --- a/src/TicTacToe.c +++ b/src/TicTacToe.c @@ -1,2 +1,15 @@ #include -#include "TicTacToe.h" \ No newline at end of file +#include "TicTacToe.h" + +int main() { + char v = '|'; + char h[] = "---"; + + printf("%c%s%c%s%c%s%c\n", v, h, v, h, v, h, v); + printf("%c %c %c %c\n", v, v, v, v); + printf("%c%s%c%s%c%s%c\n", v, h, v, h, v, h, v); + printf("%c %c %c %c\n", v, v, v, v); + printf("%c%s%c%s%c%s%c\n", v, h, v, h, v, h, v); + printf("%c %c %c %c\n", v, v, v, v); + printf("%c%s%c%s%c%s%c\n", v, h, v, h, v, h, v); +} \ No newline at end of file