Banana 2077
README.md
game.hacking.breach
The Breach Protocol puzzle as pure data and rules, with no UI and no engine calls: a code matrix of 1C 55 BD E9 7A FF (5x5 at difficulty 1, 6x6 at 2, 7x7 at 3+), a buffer (5 to 8 slots), and 2 or 3 daemon sequences. Picks alternate row / column starting on the top row; a picked cell empties; a daemon uploads when its codes appear contiguously in the buffer and fails when the buffer no longer has room for it. Daemon 1 (and 2) are slices of a generated valid pick path, so daemon 1 is always solvable within the buffer.
Called by the Hacking component, which draws the puzzle with
game.hacking.ui.
Breach.new(difficulty, seed?)builds a puzzle.Breach.canPick / pick / lineCells / finished / wouldAdvanceplay it.