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");
Generatefield();
int Ball_In_Bin = checkBallPosition();
for (int i = 0; i < 23; i++)
{
@ -219,7 +222,7 @@ void Generatefield() {
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce);
}
windIntervall++;
for (int i = 0; i < fieldHeigth; i++)
{
printf("|");

Loading…
Cancel
Save