Hnefatafl is a board game from Viking-age Scandinavia. It is lopsided on purpose: one side has a king and a few guards in the middle, and the other side has twice as many attackers around the edges. This Hnefatafl version plays the compact 7x7 Brandubh layout and comes from Christopher Müller’s open-source PaperGames collection. You can lead either army against a computer with three levels, or play a friend on the same screen. Games are short and tense.
How to Play Hnefatafl
The defenders win if the king reaches any of the four corner squares. The attackers win if they surround the king on all four sides. A player who has no legal move on their turn loses.
The attackers move first. Every piece, the king included, moves like a rook in chess: any number of empty squares in a straight line, never diagonally and never jumping. The throne in the center and the four corners are off limits for everyone except the king.
Regular pieces are captured by sandwiching. Move a piece so that an enemy piece sits between it and another of your pieces, in a straight line, and the enemy piece is removed. A corner or the throne can stand in for one side of the sandwich. Only the piece that just moved makes a capture, so stepping into a gap between two enemies is safe.
On Easy the computer moves at random, on Medium it looks one move ahead, and on Hard it searches several moves deep within a short time limit.
Hnefatafl Controls
| Action | Keyboard | Mouse | Touch |
|---|---|---|---|
| Move a piece | Tab to the board, arrow keys to reach a square, Enter on your piece and again on the target | Click your piece, then the square it should slide to | Tap your piece, then the target square |
| Choose a side and opponent | — | Pick defenders or attackers and a level, then click "New game" | Pick defenders or attackers and a level, then tap "New game" |
| Take back a move | — | Click "Undo" | Tap "Undo" |
| Give up | — | Click "Resign" | Tap "Resign" |
Tips and Strategies
- As the defenders, open lines early. The king is fastest when a whole row or column is clear, so move guards off his lines.
- Threaten two corners at once. The attackers can block only one path per move, so a double threat usually wins.
- As the attackers, guard the squares next to the corners. A piece beside a corner closes two escape routes at once.
- Use the corners to capture. Defenders that wander next to a corner can be taken with a single attacker.
- Push the king to the edge. Against the side of the board you need only three attackers to finish him.
Features
- Compact 7x7 board for quick games
- Play the defenders or the attackers against Easy, Medium or Hard, or with a friend
- Throne and corner squares marked on the board
- Undo, Resign and automatic saving of the game in progress
- Keyboard play with arrow keys and Enter
Tested and updated:













