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

Snake can reverse course under specific condition #3

Closed
DrKabum opened this issue Mar 6, 2021 · 0 comments
Closed

Snake can reverse course under specific condition #3

DrKabum opened this issue Mar 6, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DrKabum
Copy link
Owner

DrKabum commented Mar 6, 2021

Snake can reverse course when changing twice direction in the same tick.

Steps to reproduce: For instance, if you're moving right, press a first legit move (up, or down) and quickly press left before the end of the tick. The snake goes backward and dies.

Actual result: The snake can go backward and dies

Expected result: the second move shouldn't be allowed and the snake should stick to any legit moves previously pressed.

@DrKabum DrKabum self-assigned this Mar 6, 2021
@DrKabum DrKabum added the bug Something isn't working label Mar 6, 2021
@DrKabum DrKabum changed the title Snake can reverse course Snake can reverse course under specific condition Mar 6, 2021
@DrKabum DrKabum closed this as completed in f8bd432 Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant