logoalt Hacker News

tengbretsonyesterday at 8:25 PM0 repliesview on HN

Your code appears to have a bug where if the arrow keys trigger a change of direction twice in a single frame interval, it can mistakenly send the snake back on itself.