Closed Numenter closed 2 years ago
Thanks for opening the issue.
The underlying issue is this: the direction is changed with the first press and again with the second press. So that, the snake runs into itself backwards. This is possible, because both direction changes are accepted, but no step/movement happened between them.
I came up with following solutions:
I don’t think both are ideal, but considering the speed of the game the second option could work very good. Other opinions?
Wanted to change something different anyway, so will have a PR for this soon™, so you can try it. I think best strategy would be a middle way between both.🙂
This should have been fixed by #70.
Description
Gameover when changing direction to fast.
Steps to reproduce the issue