Show HN: Online curling game/SIM with Three.js
One of my hobbies is curling in a league with the local curling club. From time to time, there's a setup of stones that is tricky and interesting to contemplate from a strategic perspective. A while back, I started working on a three.js-based curling simulator that would enable me to recreate situations from my league games and then try different shots.
As you may know, curling is notoriously tricky from a physics perspective. There are a variety of papers out there about this, including this one, which is one of the more recent dives into understanding why stones curl the way they do: https://www.nature.com/articles/s41598-018-26595-y
Anyhow, with the help of Claude Code, I pulled together the work and converted the quick-and-dirty sim into a game you can play online. It's still a bit more of a sim than a game, perhaps, but it can be fun to play as a game.
Curling often is referred to as "chess on ice" because there's more strategy in choosing shots and playing ends than there would appear to be at first glance. The primary challenge of turning this into a game has been trying to figure out how to provide the computer player both with a policy for game and end-level strategy while also having it evaluate the tactical choices that have to be made for each shot.
For example, when would the computer try to blank (no points scored) an end deliberately so that it can retain hammer (last stone thrown) in the subsequent end? When should it throw a low vs. high center or corner guard in an attempt to make up a point deficit? When should it try to steal points from the hammer team vs. throwing protective stones that hold the hammer team to one point?
It's a fun side project for me, so I thought you all might enjoy giving it a shot. :)
p.s. In a game, if you go into the settings, you can turn on debug mode, which will reveal a panel on the right with a variety of (currently-undocumented) parameters you can tweak.