Snaketron – Competitive multiplayer Snake. Back after 14 years
Hi HN, I just completed a rewrite of Snaketron, a competitive multiplayer Snake game. (Yes, yes, in Rust) A quick funny story about this game's history: Back in 2012 I had (poorly) implemented the first version of Snaketron. The issue with it was that I was keeping game state on the client, and while I did realize that it was insecure, I also had no idea what to do about it without increasing latency to unplayable levels. I was still in school, never worked on games, and haven't even heard of the term "netcode" before. The excitement of releasing my first pet project got the better of me,…
What it does
In the maker’s words, at launch
Hi HN, I just completed a rewrite of Snaketron, a competitive multiplayer Snake game. (Yes, yes, in Rust) A quick funny story about this game's history: Back in 2012 I had (poorly) implemented the first version of Snaketron. The issue with it was that I was keeping game state on the client, and while I did realize that it was insecure, I also had no idea what to do about it without increasing latency to unplayable levels. I was still in school, never worked on games, and haven't even heard of the term "netcode" before. The excitement of releasing my first pet project got the better of me, and I placed this security concern in the "theoretical issues" bucket, and shipped it. No one would even notice, and if they did, they wouldn't take the time to break into my little Snake game project, right? WRONG! Hacker News absolutely lived up to its name. While I was busy with my first experience of handling a traffic surge, scaling up my database and fixing bugs, several players found the security holes and were beginning their Snake rampage. Reports were coming in of unkillable snakes so I decided to start up a game to see if I could catch it. I loaded a 1v1 and my opponent was ... space invaders. My snake was a snake. Their "snake" was a rendering of the game Space Invaders. Needless to say they were also moving around and were invincible. I really wish I had taken a video of that, but I was floored that HN not just played, but hacked, my project is such an epic way. I always wanted to rebuild it properly, so here's V2! The architecture and motivations are quite different this time around. First, the state is server authoritative and lag is compensated for by client-state prediction. The game engine is written in Rust and compiled to WASM for the client side library. To minimize the ops burden, I also imposed a strict resiliency requirement on this project: it must be auto-scalable. So a node can join the cluster and live games will rebalance to it without disrupting gameplay. I also tried to make the new Snaketron a little more fun. The core mechanic is still, like classic Snake, collecting food without crashing. But now team matches have an objective to make competitive games more structured. There's also a Bronze to Grand Master ranking sub system (if enough people play, calibrating this will be interesting) and some fun features like boosting, combos, skins, and Play Of The Game detection. On Rust: One of my original goals for doing this in Rust was so that I could learn the language. That didn't work out as well as I thought it would. Usually I learn by building stuff, but AI got so good that I stopped writing code by hand and preferred to spend my nights & weekends working on what was more intereting to me than borrow checking errors: game design and the high availability stuff. On AI: Who knows if this would have gotten done without AI. Probably not, what with my day job and other things going on in life. It's 200k LOC (most of that is tests don't worry) but still. Anyway, here are the project links. Thank you for reading, I hope you enjoy the game and any feedback is very much appreciated! [0] https://snaketron.io [1] https://github.com/lopatin/snaketron [2] https://news.ycombinator.com/item?id=4028597 (original post from 2012)
Does the same job
all alternatives →- SOSnaketron, online multiplayer Snake2012 · snaketron.com · ▲96


- MTMultiplayer Tetris in Mootools, HTML5 and NodeJS (Nearly finished)2012 · ▲6
It's been about 3 weeks since I dusted off the Multiplayer Tetris game that me and a buddy wrote A year ago and that's been collecting dust since then. A lot of after work and weekend hours have been pooring into the project since then, and I think it's about time to show the progress What's been done: - Preloading - Completely rewrote layout for desktop / tablet browsers using css3 :target. - Usage instructions added (one of the comments I got: "Yeah, it works, but how do I play?" ) - Sending all powerups to other users now works (click on another user's playfield to send powerup) - Game…
- MAMaginet, a cross-platform strategy game with Rust/WebAssembly2023 · evrim.zone · ▲8
I hereby present my little tiny pet project that entertained me for the past six months. In this post, I briefly present Maginet and its technical components. It is a turn-based strategy game that is built using Rust and compiles to WebAssembly with HTML5 bindings, which works on mobile and desktop alike! It comes with many game mechanics and components, including an AI opponent and online cross-platform multiplayer. There is so much to discuss even for a project of a smaller scale, but I am nevertheless excited to share a little bit about how you can actually build a game in Rust,…
- RMRealtime Multiplayer Tetris in HTML5 (unfinished)2012 · ▲8
About a year ago me and a buddy joined Google's HTML5GameJam, a game building hackathon. Finally I've had the time to dust the project off, upgrade some of the required libraries (node.js bumped from 0.4.2 to 0.8.11 in the meantime) and did some minor patching to get it done for some finishing touches and hopefully release somewhere this year. We implemented the full real Tetris® (yeah, that means T-Spins and funky stuff Tetris addicts like) in MVC, with configurable renderers (canvas, ASCII, Divs), input methods (keyboard, swipe, touch), 2player split mode and offline singeplayer. The…
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 2d ago · opentrailpaper.com

Launched alongside, August 2026
the whole month →- TL
Life & fun · 10d ago · louisabraham.github.io


- SA
Hello HN! I found that picking out plausible but diverse skin tones for my digital art and game development projects was kind of difficult, and I got curious about if there was a way to define a color space that made it easy. I've built a color picker and procedural generation algorithm based on the space as well as a bunch of other fun js features and demos throughout the page that use the equations. If you find it interesting, I have lots of explanations of how I built it and what properties the space has. The methodology might be a bit shaky, but hopefully the result is as helpful for…
Life & fun · Aug 2026 · toneyalexander.github.io


I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15). The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device. The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.
AI · 17d ago · simedw.com