Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The basketball must follow the laws of gravity #15

Open
martprenger opened this issue Oct 18, 2023 · 0 comments
Open

The basketball must follow the laws of gravity #15

martprenger opened this issue Oct 18, 2023 · 0 comments
Assignees

Comments

@martprenger
Copy link
Contributor

Commenly basketball is played on earth. Earth has gravity so this means that ball must fall to the ground.

// create a game
const game g;

// get coordinates of the ball
const old_coordinates = g.get_bal_coordinates();

// (assume the ball is in the air)
// go to next frame 
g.tick()
// get new coordinates of the ball
const new_coordinates = g.get_bal_coordinates();

// the coordinates should differ
assert (old_coordinates != new_coordinates);
martprenger added a commit that referenced this issue Oct 18, 2023
OggyOggelito added a commit that referenced this issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants