01 — What you are commanding
SELQARA — The Floodwarden’s Gambit is a working, browser-based simulation of a fictional Atlantean harbour defence system. Rather than displaying an isolated relic, it places you in charge of a connected hydraulic landscape: the Outer Docks, the Merchant Lagoon and the Citadel Reservoir. Each holds a different volume of water; each is protected by walls, monumental piers and mechanical sluice gates. Their safety depends on decisions made elsewhere in the network. Raise the wrong gate during a storm and a basin can flood. Seal every gate for too long and trapped rainwater can become a threat of its own.
The scene is designed as an operational diorama: deep-blue sea, salt-stained ashlar walls, patinated bronze doors, arched service bridges, signal pylons, moored trading craft and the tiered terraces of an imagined imperial capital. All architectural forms are generated from geometry in the browser. No downloaded photographs, paid textures, 3D asset packs or remote services are required. Drag the view to examine how the lockwork fits into the harbour, or use the plan perspective to see the flow network from above.
02 — The Atlantean story
In this fictional history, Selqara was constructed during Atlantis’s late maritime age, when port administrators feared that rising storm tides could overwhelm the processional waterfront. A guild of “floodwardens” received authority over four enormous lifting wickets: the Seaward Wicket, Exchange Lock, Citadel Sluice and Eastern Relief Gate. Their ceremonial title disguised a difficult practical task: keeping commercial waterways navigable while protecting civic buildings on higher ground. Stone inscriptions supposedly recorded a rule familiar to modern water engineers: the entire system must be considered, not one gate at a time.
Atlantis is a legendary island described by Plato, not an archaeologically verified civilisation. No evidence establishes the existence of Selqara, this city plan or its technology. The brass instruments, gate names, political institutions and reconstruction date are original worldbuilding. Their purpose is to give an atmospheric setting to genuine physical relationships, not to present fiction as documented history.
03 — The three basins
The Outer Docks have the largest plan area and form the first buffer against the sea. The Merchant Lagoon is smaller and supports imagined cargo traffic. The Citadel Reservoir is the most compact basin, which means the same incoming water volume produces a larger rise in its level. In the calculation, their respective representative plan areas are 4,600, 3,500 and 2,900 square metres. The water surface in each basin rises and falls as its stored volume changes. A visual waterline moves against walls and gate leaves, making hydraulic consequences readable without inspecting the numbers.
Although the three chambers are represented as rectangular pools for clear comparison, their surroundings are deliberately asymmetrical. Elevated colonnades, access causeways, beacons, steps, carved metalwork and distant buildings suggest a functioning port. Gentle surface waves provide motion without changing the mean hydraulic level. Small boats bob on the pooled water; their movement is illustrative and does not affect displacement or storage in the numerical model.
04 — The governing physics
Water moves from the higher free surface toward the lower one. Each of the four controllable gates has an opening fraction, physical width and maximum lift. The model estimates signed discharge using an idealised orifice-style relationship: flow is proportional to the discharge coefficient, gate opening area and the square root of twice gravitational acceleration multiplied by the absolute water-level difference. Direction follows the sign of that difference. More opening produces more flow; a gate between equal levels produces almost none, even if raised fully. A partly open gate facing a substantial head difference can move water rapidly.
The harbour is integrated as three finite-volume storage cells. At every short numerical time step, incoming gate flows, outgoing gate flows, rainfall and pumped discharge change stored volume. Water level is calculated from volume divided by the representative plan area. The same flow is subtracted from one basin and added to its neighbour, so water is not spontaneously created inside the network. The ocean is treated as a large external reservoir whose elevation varies with time. The fourth gate returns water from the Citadel Reservoir to an imagined seaward relief channel.
This is an intentionally simplified teaching model, not a computational fluid-dynamics solver. It does not resolve turbulent eddies, velocity profiles, wave breaking, friction losses along actual pipes, gate vibration or structural deformation. Its discharge coefficients and dimensions are illustrative, not engineering design values. Pressure readouts represent a static water-head estimate of approximately 9.81 kilopascals per metre of water-level difference; they are not a complete structural load analysis.
05 — Operating your floodworks
Choose one of three operating stories. The Morning Exchange starts with modest water-level differences and a gentle tidal rhythm. The Black-Swell Storm raises the sea and increases its tidal range, forcing you to decide when to close the seaward gate and which interior chambers should receive overflow. The Cracked Embankment introduces an additional leakage path from the Merchant Lagoon to the ocean. Different initial gate openings expose the strengths and weaknesses of each configuration; selecting a scenario resets the model so that experiments are repeatable within that configuration.
Each gate slider adjusts the vertical opening immediately. Click a numbered marker, or use the 1–4 keys, to inspect a gate and read its current discharge. The flow display changes sign when pressure direction reverses. Auto-balance can operate the gates automatically using a simple target-level heuristic. Its decisions are deliberately imperfect: it is a reference strategy, not a guaranteed flood-prevention algorithm. Return to manual mode whenever you want to impose your own operating sequence.
The environment sliders provide independent experiments in storm surge, tidal amplitude, rainfall, pump capacity, leakage severity and discharge efficiency. A storm pulse adds a temporary surge that then dissipates. The release command opens the eastern relief route; it cannot force drainage uphill, so it works best when the Citadel Reservoir stands higher than the sea. Playback speed changes how quickly simulated time advances. Pause, resume, reset, change camera views and zoom or pan without disturbing the water balance. The chart plots recent water-level measurements to help expose delayed consequences.
06 — Experiments worth trying
Begin on a calm day with all four gates only partly open. Increase the tidal range and notice that flow oscillates as the ocean alternates between being higher and lower than the dock water. Next, close the seaward wicket before a storm pulse and observe whether the outer pool becomes a temporary buffer. Try opening the interior gates together; the Citadel Reservoir is smaller, so its level may rise unexpectedly quickly. Repeat with greater pumping capacity and compare the highest recorded waterline. You can also trigger a breach and test how a leakage path changes the efficiency of a transfer strategy.
For an advanced comparison, watch the total basin volume while changing a gate between two interior chambers. In the absence of rainfall, pumping, leakage and exchange with the sea, transferring water internally should not change the system total. When the global volume changes, look for a source or sink at the boundary. This accounting principle—conservation of mass—is useful in reservoir management, flood forecasting, municipal water networks and industrial process simulations.
07 — What is real, and what is invented
Tides, pressure heads, gravitational discharge, hydraulic storage, rainfall volume and pump flow are grounded in real physical concepts. Raising a gate increases its open area; a higher water surface has greater gravitational potential to drive flow; smaller reservoirs respond faster to equal volume changes. Those principles remain useful outside an Atlantean setting. The visual scale, rectangular basin shapes, idealised bypass tunnel, instant gate actuation, controller tuning and storm functions are game-like simplifications. There are no measured bathymetric data, hydraulic calibration results or authenticated Atlantean ruins behind the scene.
The greatest lesson of Selqara is systemic thinking. Opening one barrier can protect one neighbourhood while endangering another. Measurements are more reliable than visual guesses, and an automated rule can be defeated by unfamiliar boundary conditions. Treat the exhibit as a playful laboratory: predict the response, choose an intervention, watch the time series, reset and test the alternative. A good floodwarden does not merely fight water; they manage where it can safely go.