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

Simulation is not deterministic if many explosions #354

Open
Wuzzy2 opened this issue Jan 15, 2020 · 0 comments
Open

Simulation is not deterministic if many explosions #354

Wuzzy2 opened this issue Jan 15, 2020 · 0 comments

Comments

@Wuzzy2
Copy link
Member

Wuzzy2 commented Jan 15, 2020

If a lot of dynamite explodes or a lot of cola bottles spill their cola everywhere, the simulation is no longer deterministic. If you repeat the exact same situation, you might get different results.

How to test

I have added a test level levels/test/test-dynamite-determinism.xml in the master branch to test this. Just start the simulation at normal, fast or ultra fast speed and look where the tennis ball will drop. Repeat the simulation multiple times.

EXPECTED: The tennis ball always ends up in the same spot
ACTUAL: The tennis ball ends up in different spot

If you only use one dynamite, or the level is generally very simple, it seems to be deterministic.

Version

123d276 in master

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

1 participant