How to play


Controls
TapKeyboard←→↑↓ Space U H- Tap a piece, then tap a dot to slide it.
- Sandwich enemies to capture.
- Keys: arrows, Space, U, H.


All six rivals were beaten at the first try without undo or hint, losing at most 2 pieces each: 18 of 18 stars. That was our second script version. The first won rivals 1 to 5 and then lost to Ulf twice, the same way, while attacking for about 3 seconds of search a move. The second searches exactly 5 moves deep against Ulf and beat him in 15 moves. Every move came from our own search, not the game's AI or hint; only its move and capture rules were copied.

Each turn the search looked ahead with a table of positions already seen and our own scoring: pieces, the king's open lines to the corners and his escape routes two moves deep, his free squares, attackers next to him and attackers on the squares that guard the corners. As attacker it weighs the corner guards and the two-move escapes more and presses closer to the king as the game goes on.
| Rival | Rival AI (code) | We play | Our moves | Pieces lost / taken | Stars |
|---|---|---|---|---|---|
| Bjorn | easy | defenders | 8 | 0 / 3 | 3 |
| Astrid | easy | attackers | 17 | 1 / 2 | 3 |
| Leif | normal | defenders | 12 | 1 / 4 | 3 |
| Freya | normal | attackers | 28 | 0 / 5 | 3 |
| Ragna | hard | defenders | 16 | 2 / 2 | 3 |
| Ulf | hard | attackers | 15 | 2 / 6 | 3 |

The ladder alternates sides: you defend, then attack, against an easy, a normal and a hard rival. The defending games were short, 8 to 16 of our moves, because the king finds an open line quickly. Attacking took longer, up to 28 moves against Freya, since the king has to be closed in before he can be caught. Against Ulf, the time-limited first version lost 9 pieces and the game after 22 of its moves; the depth-5 search took 6 pieces and the king in 15.

Use the danger overlay: picking a piece marks every square where it would be sandwiched next turn in red, and your pieces that can be taken right now pulse red. As defender, move the king toward a row or column with only one attacker on it; two open lines at once cannot both be blocked. As attacker, guard the squares next to the corners before chasing the king, then close the ring.
