Snake (1): My browser snake game from 15 years ago, now free and open-source
In the late 2000s, I was an active member of the Czech bulletin board https://diskuse.jakpsatweb.cz, a vibrant space where hobbyists, academics, and professionals shared ideas about web development.
On July 29, 2010, I introduced an early version of a web browser game called DHTML Snake in a forum post. In that post, I explained the game’s systems, implementation details, and invited feedback. Over the next couple of years, I incrementally improved the game by following my own creative direction and incorporating suggestions from high school classmates.
After more than a decade without updates, I revisited the project yesterday. I cleaned up the code and released it under a free, open-source license on GitHub.
You can try the game here using your computer’s keyboard and mouse. 🤞
The GitHub repository doesn’t just host the latest version—it also features four historical versions of the game that showcase its evolution over time.
Shortly after the update, I promptly fixed a long-standing bug related to using Geolocation for the in-game day-and-night cycle. If time permits, I plan to follow up later this month with a detailed post-mortem discussing the game’s journey and exploring potential future developments.
Last updated on March 13, 2025