Snake
Aug. 29, 2011I've written the classic snake game in CoffeeScript. It was my first time writing in CoffeeScript and I feel I got a good introduction to the language. I used jQuery to handle keyboard events and Raphael to handle the drawing.
I'm pretty happy with the result. The last time I wrote snake was in python using pygame. Whenever I wanted to show someone the game, I had to install python and pygame on their computer. What a headache. Now I can just give them the url and they can play in their browser.
Click here to play it in your browser.