Browser game

Crabminer

It's a crab mining game.

Richeson: Crabminer — Games

Summary—Run a crew of robot crabs on the sea floor: scout for metal, drill it, smelt it in lava, and sell it up to the surface for crab profit. The sea behind this page comes from it.

Crabminer is a small city builder on a layered paper-dune sea floor. The player runs a crew of robot crabs that turns buried metal into money: scouts flag deposits, drills dig them up (some holes come up dry), haulers carry the nodules to an ore pile, crushers press two nodules into a bar, smelters melt the bars into ingots in a lava cave, and a riser sends the ingots up to a ship at the surface. No crab takes orders; each follows a simple rule, and the player balances the crew so that the slowest stage stops holding the line back.

A game starts already running, with nine crabs, 120 credits and a six-step tutorial that teaches by doing: hire a second smelter, follow the advisor, spend overclock, try A and B shifts, claim the middle dune. From there the player hires by hand, eight kinds of crab with a mark on each shell so no two are told apart by colour alone. The player claims richer dunes, researches five technologies that unlock twenty worker upgrades, and rearranges the line's buildings. Lifetime earnings climb six ranks, from Sand Scraper to Crab Tycoon, and the crab time it takes is the score.

Upkeep is part of the balance. Energy bots recharge the crew from a Stirling engine by the lava; drill bits snap and legs fall off, and repair and maintenance bots forge new parts in the lava from the line's own ingots and bars. Crabs that never rest wear out, so a workday pattern (all hands, A and B shifts, three-shift relief, or custom) trades hours for rested crabs, as long as every job is covered in every shift. Idle friends dance, which recharges them, and a crab that slept or danced starts the next morning faster.

The sea joins in on its own timers: tides and storms, lava surges, an octopus after the ore pile, a moray eel, cargo ships with orders and a rival crew of lobsters racing for them, a hermit-crab trader, a sea turtle and a manta ray that give crabs lifts, a wreck to strip for bars, and every tenth day a crab festival. The Ledger shows what each stage could do, who covers which hours and where the money went, so the advisor's one line can be checked.

It is one static page with no build step and no dependencies, running a deterministic simulation; the full rules and a review of the economy sit under the game as an IEEE-style paper, and every action has a key or a button as well as a click. The sea behind this page comes from it.

Highlights

  • Eight crab trades on one line, from sand to ship
  • Shifts, wear and rest; breakdowns repaired with parts forged in the lava
  • Six ranks from Sand Scraper to Crab Tycoon, then a new dig site
  • A sea with a mind of its own: storms, an octopus, ships, a rival crew
  • A deterministic simulation, with tests and a rules paper
  • No libraries, no build step

At a Glance

TABLE I Crabminer
LanguageJavaScript, HTML, CSS
PlatformAny modern browser
LicenseMIT
Websitecrabminer.com
Sourcegithub.com/crabminer/crabminer

Pictures

Fig. 1. Crabminer: robot crabs on layered sand dunes, a collector, and the crew panel

Fig. 2. The processing line on the front dune: den, ore pile, crushing yard, bar stack, stockpile and the riser to the ship, with the refuel post on its cord from the Stirling engine.

Fig. 3. Out on the field: a scout plants flags, a drill digs them out, and haulers carry the nodules to the ore pile.

Fig. 4. A and B shifts in the Crew tab, with the 24-hour timeline and the advisor naming what the line needs.

Fig. 5. The octopus swims in for the ore pile while the moray eel is out of its crack; both have a Shoo button.

Fig. 6. The late game: the annex on the middle dune, a wreck for the scouts to strip, the kelp forest and the lighthouse lamp.

Fig. 7. The Ledger: what each stage could do, in ingots a minute; the slowest sets the pace.