YayPlays

How to play

Castle Wall: Choose a level
1Choose a level
Castle Wall: In play
2In play

Controls

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

Castle Wall: all 25 castles closed on the first loop, the last one after 1.7 million search steps

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.

One wall, one courtyard

  • Draw one closed wall through cell centres. White towers must end up inside, black rocks outside, and grey clues may be on either side.
  • No clue cell may carry the wall. An arrow number counts the wall pieces in its row or column in the direction it points.
  • Closing the loop floods the inside with grass. A wrong closed loop costs one of three hearts; an open wall costs nothing.
  • Three stars need no hint and no lost heart. Each hint takes one star, and losing any heart takes one more.
Castle 1: the wall almost round, and the prompt Close the loop!
Castle 1: the wall almost round, and the prompt Close the loop!

How the walls were found

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.

CastlesGridClue cellsSearch stepsLoops closed
1-34 by 42-444-3211 each
4-85 by 55-677-3091 each
9-146 by 66-8167-3,0291 each
15-207 by 77-1120,980-528,1591 each
21-258 by 78-118,526-1,690,0301 each
Castle 4: the first 5 by 5 board, with a down-arrow 0 on a tower in the middle.
Castle 4: the first 5 by 5 board, with a down-arrow 0 on a tower in the middle.

Zeros and counts

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.

Castle 25: the wall being drawn around the towers, with arrows such as 4, 3, 2 and 0 along the edges.
Castle 25: the wall being drawn around the towers, with arrows such as 4, 3, 2 and 0 along the edges.

Building by hand

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.

Castle 25: CASTLE BUILT! with three stars and the courtyard in grass.
Castle 25: CASTLE BUILT! with three stars and the courtyard in grass.

Questions

Do towers sit on the wall?
No. Every clue cell is closed to the wall, even the grey ones.
Does a green arrow mean the castle is solved?
Only its count is right. The towers, the rocks and every other arrow must agree too.
Did any castle need a second loop?
No. All 25 were closed correctly the first time, with three hearts left.

· Corrections log

Suggest an idea or report a problem

We keep only your message (and email, if given) to improve the games.