|
@ -129,10 +129,12 @@ int main() |
|
|
while (1) |
|
|
while (1) |
|
|
{ |
|
|
{ |
|
|
clearField(); |
|
|
clearField(); |
|
|
|
|
|
field[Ballx][Bally -= 1] = 'O'; |
|
|
Generatefield(); |
|
|
Generatefield(); |
|
|
|
|
|
|
|
|
int Ball_In_Bin = checkBallPosition(); |
|
|
int Ball_In_Bin = checkBallPosition(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (Ball_In_Bin) |
|
|
switch (Ball_In_Bin) |
|
|
{ |
|
|
{ |
|
|
case (1): |
|
|
case (1): |
|
@ -174,7 +176,7 @@ int main() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
field[ballX][BallY -= 1] = 'O'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|