Snake in Javascript

This weekend I spent a few hours to write the classic game of Snake in javascript. There are already many versions of Snake available on the web. This was just some fun way to practice javascript. I used YUI 2 for event and dom handling. I have already written a few games in other languages like C++ and Basic during school/college days but this is my first game in Javascript. Will try to write better games in the future probably using HTML5 which can give a much better experience.

The game can be played at http://odhyan.com/snake/

The javascript code can be viewed at http://odhyan.com/snake/snake.js

3 Comments on "Snake in Javascript"


Leave a Reply

Your email address will not be published. Required fields are marked *