SWIsland Recursion Saga

“How many islands can the ocean hold?” — Stage

...loading...

Configure island settings and press Start.

Canvas:   Grid:

⚙️ Controls
ON = Fisher-Yates shuffle → organic shape
OFF = sorted top→left → predictable boxy shape
🕳️ Ocean Pits
Toggle ON to click ocean cells and mark them as pits (click a pit again to remove it). Pits are too deep for island growth — the recursion must route around them. Seeds are auto-placed in IDLE state; pit placement is only available before pressing Start.
Pits placed: 0
📊 Recursion Cost
🏝️ Islands placed 0
✅ Cells added 0
↩️ Backtracks 0
📉 Backtrack ratio
Ratio = backtracks ÷ (adds + backtracks). Higher ratio = more wasted work = harder path.
🎨 Color Guide
  • Ocean — open water (light blue)
  • Trying — current ADD attempt (yellow-green)
  • Island cells — 8 unique colors, one per island
  • Candidate hint — legal next moves (via SWIsland.isValidExpansion())
  • Backtrack — cell removed, trying elsewhere
  • Ocean pit — forbidden zone
📋 Recursion Log