Remix.run Logo
tengbretson 2 hours ago

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.