|
@ -123,6 +123,9 @@ int main() |
|
|
{ |
|
|
{ |
|
|
system("clear"); |
|
|
system("clear"); |
|
|
Generatefield(); |
|
|
Generatefield(); |
|
|
|
|
|
|
|
|
|
|
|
int Ball_In_Bin = checkBallPosition(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 23; i++) |
|
|
for (int i = 0; i < 23; i++) |
|
|
{ |
|
|
{ |
|
@ -219,7 +222,7 @@ void Generatefield() { |
|
|
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); |
|
|
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); |
|
|
} |
|
|
} |
|
|
windIntervall++; |
|
|
windIntervall++; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < fieldHeigth; i++) |
|
|
for (int i = 0; i < fieldHeigth; i++) |
|
|
{ |
|
|
{ |
|
|
printf("|"); |
|
|
printf("|"); |
|
|