Browse Source

Updatefunktion verbessert

main
Siamak 2 years ago
parent
commit
232a3650f6
  1. 4
      src/Spiellogik.c

4
src/Spiellogik.c

@ -98,8 +98,8 @@ int update(int realU[N][N],char richtung) {
realU[ii - 1][jj] = groesste + 1;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
if (realb[i][j] != 0 && realb[i][j] != (N * N) + 1) {
realb[i][j]--;
if (realU[i][j] != 0 && realU[i][j] != (N * N) + 1) {
realU[i][j]--;
}
}
}

Loading…
Cancel
Save