Browse Source

2 display Board

remotes/origin/Simon
Simon Hildebrandt 11 months ago
parent
commit
2107498e6b
  1. 9
      src/main/c/TicTacToe.c

9
src/main/c/TicTacToe.c

@ -4,7 +4,6 @@
#include <string.h>
// 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++) {
@ -12,3 +11,11 @@ void Brett(char Feld[3][3]) {
}
}
}
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");
}
}
Loading…
Cancel
Save