Y
Hacker News
new
|
ask
|
show
|
jobs
by
tengbretson
23 days 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.