How to play


Controls
DragHoldKeyboard←→↑↓ Space Z- Drag across cells to build the wall, drag over it to erase.
- Towers go inside, rocks outside.
- Arrows count wall pieces in that direction.
- Keys: arrows, hold Space to build, Z undo.


Every castle was closed with one correct loop at the first attempt, with no heart lost and no hint, so all 25 earned three stars. The loops came from our own search; the loop stored with each castle and the HINT button were never used. The search grew with the boards: 44 steps for the 4 by 4 castle 1, over 1.6 million for the 8 by 7 castle 25. The memory guard on our test machine closed the browser six times during the run; each time the script reopened the game at the next castle.

Before drawing, the script read the clue cells and decided cell by cell, left to right and top to bottom, whether the wall continues to the right and downward. It kept every cell at two wall pieces or none, every clue cell at none, and every arrow count still reachable. A full candidate also had to be a single closed loop with the towers inside and the rocks outside, checked with the game's own inside rule. The wall was then drawn with the keyboard: arrows move the cursor, and holding Space while stepping builds a piece.
On the 4 by 4 and 5 by 5 castles the search took a few hundred steps; on the largest boards it ran into hundreds of thousands, and castle 25 took 1,690,030. Even that finished in a few seconds, so the slowest part of every castle was drawing the wall.
| Castles | Grid | Clue cells | Search steps | Loops closed |
|---|---|---|---|---|
| 1-3 | 4 by 4 | 2-4 | 44-321 | 1 each |
| 4-8 | 5 by 5 | 5-6 | 77-309 | 1 each |
| 9-14 | 6 by 6 | 6-8 | 167-3,029 | 1 each |
| 15-20 | 7 by 7 | 7-11 | 20,980-528,159 | 1 each |
| 21-25 | 8 by 7 | 8-11 | 8,526-1,690,030 | 1 each |

A zero arrow is the strongest clue on the board: no wall piece may lie anywhere along its lane. The search uses every arrow the same way, dropping a partial wall as soon as a lane already holds more pieces than its number or can no longer reach it. Towers and rocks only bite once the loop is closed, which is why the guide warns against closing early: the inside rule is checked last.

Start with the zero arrows and cross out their lanes. Then follow the arrows with large numbers: a lane that must hold four pieces in a short row leaves little choice. Keep one gap open until every tower is inside and every rock outside, because only a closed wrong loop costs a heart. If a rock ends up in the grass, reopen the nearest side and reroute it rather than rebuilding everything.
