Browse Source

29 Feldrand

main^2
Simon Hildebrandt 11 months ago
committed by Peter Wiebe
parent
commit
095925fbb2
  1. 6
      src/main/c/TicTacToe.c

6
src/main/c/TicTacToe.c

@ -113,6 +113,12 @@ int mainx() {
scanf("%d", &col); scanf("%d", &col);
row -= 1; row -= 1;
col -= 1; col -= 1;
if (row > 3 || col > 3) {
printf("Das ist nicht mehr im Feld. Versuch es nochmal:");
scanf("%d %d", &row, &col);
row -= 1; //Für Index eins kleiner
col -= 1;
}
Zuege(Feld, row, col); Zuege(Feld, row, col);
Zaehler++; Zaehler++;
} }

Loading…
Cancel
Save