|
@ -60,12 +60,17 @@ void getStartPosition() |
|
|
|
|
|
|
|
|
while (Bally == -1) |
|
|
while (Bally == -1) |
|
|
{ |
|
|
{ |
|
|
for (int i = 2, j = 0; i <= 15; i += 2, j++) |
|
|
|
|
|
|
|
|
for (int i = 2, j = 0; i <= 20; i += 2, j++) |
|
|
{ |
|
|
{ |
|
|
field[i][Bally] = j + '0'; |
|
|
field[i][Bally] = j + '0'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
Generatefield(); |
|
|
Generatefield(); |
|
|
|
|
|
//printf("W\x84\hle die position des Balls (0-9):\n"); |
|
|
|
|
|
printf("W\x84\hle die position des Balls (0-9):\n"); |
|
|
|
|
|
|
|
|
|
|
|
scanf("%d", &Ballx); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|