|
@ -98,8 +98,8 @@ int update(int realU[N][N],char richtung) { |
|
|
realU[ii - 1][jj] = groesste + 1; |
|
|
realU[ii - 1][jj] = groesste + 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 (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]--; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|