Browse Source

Linksfunktion zuende

main
Siamak 2 years ago
parent
commit
f48587107c
  1. 5
      src/Spiellogik.c

5
src/Spiellogik.c

@ -147,7 +147,6 @@ int update(int realU[N][N],char richtung) {
else { else {
if (!lose(realU, richtung)) { if (!lose(realU, richtung)) {
realU[ii][jj - 1] = max + 1; realU[ii][jj - 1] = max + 1;
}
for (int i = 0; i < N; i++) { for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) { for (int j = 0; j < N; j++) {
if (realU[i][j] != 0 && realU[i][j] != (N * N) + 1) { if (realU[i][j] != 0 && realU[i][j] != (N * N) + 1) {
@ -156,6 +155,10 @@ int update(int realU[N][N],char richtung) {
} }
} }
} }
else {
return 1;
}
}
} }
int probe(int input){ int probe(int input){

Loading…
Cancel
Save