Browse Source

Links weiter

main
Siamak 2 years ago
parent
commit
30113289f4
  1. 7
      src/Spiellogik.c

7
src/Spiellogik.c

@ -148,6 +148,13 @@ int update(int realU[N][N],char richtung) {
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 j = 0; j < N; j++) {
if (realU[i][j] != 0 && realU[i][j] != (N * N) + 1) {
realU[i][j]--;
}
}
}
} }
} }

Loading…
Cancel
Save