Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants