#1 Starting a Dev Diary
· HammyTurf dev team
It has been two months since HammyTurf went live. Starting this week, we will write about the behind-the-scenes side of development, roughly once a week: how we decided on the rules, why we made the choices we made, and the things that did not work. We want this to be the place where players can see what the people behind the game are thinking.
How HammyTurf runs
HammyTurf is a hamster turf-war game that runs entirely in the browser. The server is a single program written in Go that serves the pages and handles the game traffic over WebSocket. It runs on one server in Tokyo, with CloudFront in front of it.
Movement, enclosures and eliminations are all computed on the server. The browser only receives "who is where, and which cells belong to whom" and draws it. This keeps the result consistent for everyone even on a slow connection, and makes cheating impossible. The downside is that the game stutters when server updates arrive late, so right after launch we spent a lot of time compressing what we send to keep the traffic small.
A board holds up to 24 hamsters. When there are not enough people, bots fill the empty seats. The bots follow simple rules, but without a cap on how fast they can turn, they corner you with turns no human could make, so we limit them to 500 degrees per second. We will go into this tuning in a later entry.
The first two months
- Aug 21: launch, with solo play only.
- Aug 23: Team Battle, where four teams share their turf.
- Aug 25: the English version. The site has been bilingual ever since.
- Aug 29: emoji reactions during play.
- Sep 5: leaderboards (daily, weekly, monthly, by region).
- Sep 7: data transfer between devices, using a link sent by email.
- October: work on the LINE mini app version, plus the ten-part Game Guide and the About Us page.
Looking back, these two months went into the things around the game (leaderboards, transfers, the guide) more than the game itself. We have been putting the essentials in place one by one.
A small recent discovery: hamsters 1 and 22 are almost the same color
Last week, while expanding the solo color chart in the Game Guide, we noticed something. In solo play, each hamster's hue is shifted by 137 degrees from the previous one, in join order. That is the golden angle, the same idea behind the spiral of sunflower seeds. Neighboring numbers get very different colors, so we assumed any two hamsters were easy to tell apart. But 21 steps later the hue has gone almost exactly once around the circle. Hamsters 1 and 22, 2 and 23, and 3 and 24 are nearly identical.
This only happens on a full board of 24, so for now we judged the impact small, left the rule as it is, and added a note to the chart. Once full boards become the norm, we will revisit it.
The numbers today
To be honest, this is still a small game. Over the last four weeks there were 533 plays, and somewhere between a handful and a dozen or so people visit each day. The board has not been full (24 hamsters) once in those four weeks. Thanks to the bots you can play alone, but the real game starts when more matches are between humans.
What comes next
Our goal for now is simple: more players. That means the LINE mini app, iOS and Android app versions, and getting listed on io game portals. In the game itself we want to revisit how the bots play, the end-of-round presentation, and the balance of Team Battle.
Feedback and requests are welcome through the contact page, including topics you would like this diary to cover.