From 7b4b4e3ece0ef4d1089499c9f9e27cd84a64bf72 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 16:11:13 +0100 Subject: [PATCH] refactoring vertical und horizontal namen --- src/TicTacToe.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/TicTacToe.c b/src/TicTacToe.c index b703463..349ce96 100644 --- a/src/TicTacToe.c +++ b/src/TicTacToe.c @@ -2,14 +2,14 @@ #include "TicTacToe.h" int main() { - char v = '|'; - char h[] = "---"; + char vertical = '|'; + char horizontal[] = "---"; - 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); + printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); + printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); + printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); + printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); + printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); + printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); + printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); } \ No newline at end of file