Solitude, Part 3: The Oracle

In Part 1 and Part 2, we built the island generator, live hints, and 2.5D canvas for Solitude. Rather than a public leaderboard, finishing Day 28 compares your score against two AI bots on the exact same island and weather schedule (with full move-by-move replays):

  • Master Strategist plays under the same fog of war and short weather forecast as a human.
  • Island Oracle sees the entire 21x19 map and all 28 days of weather from Day 1.

At first glance, Oracle sounds like the easy half of that pair: a deterministic, single-player game with zero hidden information. Getting both bots playing well inside a one-to-two-second budget on my shared E2-micro VM turned out to be the hardest search problem in the project.

Unlike a crossword or chess puzzle, Solitude has no static end board to propagate backward from. Every day gives you 5 AP and a 3-slot satchel, and early on you face a sharp fork in how to reach a sheltered cabin site inland: hike there first to pitch an inland camp and upgrade it in place for 3 wood, or pitch a beach camp on Day 1 (keeping nightly supper down to 1 food instead of sleeping rough) and build a 5-wood cabin inland later. Because your satchel only holds 3 wood, paying 5 wood requires an unbroken 0-AP stone road from camp to the cabin site - and structures like gardens or wind vanes block roads through their tile.

On December 3’s Medium daily island, I played a normal run myself, finished at 2,496 points, and was surprised to see I’d beaten my own “omniscient” Island Oracle (2,337). Watching its replay showed both of its opening plans falling apart on a tree-starved starting riverbank:

Getting Island Oracle and Master Strategist past traps like December 3 came down to four lessons:

  1. Beam width mattered far more than depth: Gathering shore berries and driftwood in different orders creates half a dozen near-duplicate states with high immediate scores that crowd slower inland cabin plans off a narrow beam. Across 7 Medium test islands, looking 5 days ahead instead of 3 at width 12 barely moved Oracle’s average final score (2,489 to 2,513), while keeping a 3-day window and widening the beam from 6 to 192 states lifted that average nearly 600 points (2,239 to 2,830).
  2. CSP for where, rolling beam for when: A wide beam was too slow on a tiny VM, so both bots reuse Part 1’s Charter solver to pick building tiles up front while a small rolling beam orders daily moves. Because Oracle sees the whole map and the game is deterministic, it runs both opening plans from above - hiking to an inland camp vs. pitching a Day-1 beach camp - and keeps whichever 28-day run scores higher.
  3. Scrubbing fog triggered a 36-tree panic: Overwriting Strategist’s unrevealed tiles with plain grass to hide the real tile contents from the Strategist triggered my favorite bug of the project. Because Solitude penalizes clear-cutting relative to starting forest count, overwriting 36 hidden forests on Day 1 made the scorer think Strategist had chopped down 36 woods before taking a step, sending it on a frantic tree-planting spree until we tracked only the player’s own felled-vs-planted count.
  4. Checking local wood, bridge roads, and true road distance: Closing the gap from my December 3 run took three fixes: counting trees within walking reach (saving 3 wood for a bridge before optional 2-wood builds), keeping the last road tile beside every bridge open, and checking actual road distance around obstacles before building a wind vane. Previously, distance from a mountain vane to the cabin was measured in straight hexes right through impassable peaks and rivers - making (12,4) behind the ridge look 4 steps from (12,8) when a real road around the peaks was over 10 tiles long.

Across 21 daily islands, those changes lifted Strategist’s average score to 2,271 (~0.5s) and Oracle’s to 2,713 (~2s), with Oracle jumping from 7 to 18 out of 21 full Charter clears. On a few wood-rich islands v2 edged out v3 because weight tweaks shift which 12 states survive each morning, but I went with v3 alone rather than doubling VM time for a few seeds:

Because your run happens locally in TypeScript while the bots play in Go, Go provides only each bot’s recorded move list (~16 KB total) and the browser replays it on a fresh copy of the island, backed by a shared RNG and kept honest via a 28-day replay test in go test and npm test plus a shared golden replay.

Even at a 2,713 average, Island Oracle is still planning through a 3-day window inside two seconds rather than proving a 28-day optimum. When an island rewards a five-day setup across both rivers, you can still spot lines a bounded beam trims away, so you can still beat the Oracle (well, at least sometimes)! Give today’s islands a spin at dawnofthe.dad/solitude.