The Lockkeeper's Ledger

The Wendle Navigation: 9 locks, 3 keepers, 40 boats and two days to get everyone over the hill.

Day 1 06:00day
New to canals? The 60-second guide
A lock is a water lift. The canal climbs a hill in steps. Each step is a pool; between two pools sits a lock: a chamber with a gate at each end.
Going up: a boat enters the low chamber, the gates close, water is let in from the upper pool (the chamber fills) and the boat rises. It sails out into the upper pool. Going down is the reverse: the chamber empties into the pool below.
Water is the scarce thing. Every fill takes a chamber-full out of the pool above; every emptying pours one into the pool below. A pool may not fall under its minimum, so the summit feeder stream (and boats coming down) supply the water for boats going up.
Keepers and hours. Nothing moves unless a keeper is standing at the lock, and keepers must walk between locks. Locks work only 06:00-22:00. A chamber must also be in the right state: an empty "turn" changes it without any boat.
The score. Every boat has a deadline and a priority (1-3). Weighted lateness = sum of priority × minutes late. Lower is better; water drawn breaks ties.

The canal, animated

priority 1priority 2priority 3 bargepast deadline

Happening now

Waiting now

Selected boat

Click a boat in the canal, or a row in the tables, to follow it.

Gantt chart

Click anywhere on the chart to jump there. Night is squeezed; hatched red = maintenance closure. Hover a bar for details; click a bar to follow its first boat.

Every delay, explained

Click a boat for its full story.

Disruption mode

Close a lock for a while or hold a boat back, then re-plan. The solver runs in your browser (a short search), and the changes against the original plan are listed below.

Close a lock
Delay a boat's release
Re-plan

Everything on this page, including the solver, runs offline from this single file.