Snake can reverse course under specific condition
Closed this issue · 0 comments
DrKabum commented
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.