Browse Source

1 Init Board

remotes/origin/Simon
Simon Hildebrandt 11 months ago
parent
commit
152fea0f0d
  1. 14
      src/main/c/TicTacToe.c
  2. BIN
      src/main/c/a.exe

14
src/main/c/TicTacToe.c

@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#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++) {
Feld[i][j] = '_';
}
}
}

BIN
src/main/c/a.exe

Loading…
Cancel
Save