There is a bug. If you are traveling right, then quickly press down, release down, then press left, and release left, you will die. This is not snake behavior.
I found it interesting that it works at all given that it's using td elements as board cells, jQuery to compare dom elements for cell referencing/dereferencing, and setInterval to update the animation and gamer input.
8 comments
[ 4.4 ms ] story [ 32.9 ms ] threadhttp://waynecrouch.co.uk/jsnake/ (source: https://github.com/wgcrouch/jSnake)