Browse Source

Richtung oben weiter

main
Siamak 2 years ago
parent
commit
0c24757f39
  1. 12
      src/Spiellogik.c

12
src/Spiellogik.c

@ -119,6 +119,18 @@ int update(int realU[N][N],char richtung) {
apple(realU); apple(realU);
speed = speed + 20; speed = speed + 20;
} }
else {
if (!lose(realU, richtung)) {
realU[ii + 1][jj] = groesste + 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]--;
}
}
}
}
}
} }
int probe(int input){ int probe(int input){

Loading…
Cancel
Save