Browse Source

Checken ob der Ball im Korb ist

main
fdai7172 2 years ago
parent
commit
714b847028
  1. 5
      src/Paper-Bin.c

5
src/Paper-Bin.c

@ -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("|");

Loading…
Cancel
Save