Browse Source

refactoring vertical und horizontal namen

remotes/origin/tictactoedev
Sabina Grisi 11 months ago
parent
commit
7b4b4e3ece
  1. 18
      src/TicTacToe.c

18
src/TicTacToe.c

@ -2,14 +2,14 @@
#include "TicTacToe.h" #include "TicTacToe.h"
int main() { 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);
} }
Loading…
Cancel
Save