cools maths gamesSurprise me

Hnefatafl

A Viking-age board game on a 7x7 grid where a king races for a corner and attackers try to surround him.

Hnefatafl title screen
  • Works on mobile
Report a problem

Hnefatafl is a strategy board game from Viking-age Scandinavia, built around two uneven armies. A king and four guards start in the middle, while eight attackers wait along the edges. This one uses the small 7x7 Brandubh layout. The king’s side wants him in a corner, and the attackers want him trapped.

How Hnefatafl Works

Attackers make the first move. Every piece, the king too, slides any number of empty squares in a straight line, like a rook. No diagonal moves and no jumping. The center throne and the four corners are for the king only, and other pieces cannot stop on or pass through them.

To capture a regular piece, trap it between two of yours in a straight line. The corners and the throne can act as one side of that trap. Only a move you just made can cause a capture.

The defenders win when the king reaches a corner. The attackers win by covering all four sides of the king with attackers or the board edge. A player with no legal move also loses. You can pick either side against the computer at Easy, Medium or Hard, or play a friend.

Your First Few Minutes

  1. Pick the defenders and Easy, then press New game.
  2. Watch the computer’s opening attacker move.
  3. Slide a guard out of the king’s row to open a line.
  4. Look for a move that lets the king threaten two corners.
  5. Swap to attackers next game and guard the squares beside corners.

Controls for Hnefatafl

Keyboard, mouse and touch controls for Hnefatafl
To do thisKeyboardMouseTouch screen
Move a pieceTab to the board, arrow keys to reach a square, Enter on your piece and again on the targetClick your piece, then the square it should slide toTap your piece, then the target square
Choose a side and opponentnot usedPick defenders or attackers and a level, then click "New game"Pick defenders or attackers and a level, then tap "New game"
Take back a movenot usedClick "Undo"Tap "Undo"
Give upnot usedClick "Resign"Tap "Resign"

What It Trains

You scan full rows and columns to spot open lines toward the corners, a clear spatial task. Each side also has a different plan, so switching sides teaches you to read the board from your opponent’s view.

Strategy Notes

  • Clear the king’s lanes. Move guards out of his row and column so he can run far.
  • Make a double threat. Attackers can block only one corner path per turn.
  • Guard corner neighbors. An attacker next to a corner shuts two escape routes.
  • Use corners as a trap. A defender beside a corner can fall to a single attacker.
  • Drive the king to the edge. There, three attackers are enough to win.

Good to Know

The board fits phones in portrait, and the game works with mouse, touch or keyboard. There is no sound. Games are short, and your progress is saved locally. It comes from Christopher Müller’s PaperGames collection.

Hnefatafl questions and answers

Which side should I try first?

The defenders are a good start. Their goal is easy to see, since the king just needs a clear line to a corner. Playing the attackers teaches you how much space a few well-placed blockers can close off.

Is it safe to move between two enemy pieces?

Yes. A capture only happens when the moving player closes the sandwich. If you step into a gap with an enemy on each side, your piece stays on the board.

Does the board edge count against the king?

Yes. The king is caught when every side is covered by an attacker or the edge. Against the edge, three attackers are enough. The empty throne does not count against him.

What other way can a game end?

A player with no legal move on their turn loses. You can also use Resign to give up, and Undo to take back a move. Your current game is saved in the browser.

Games that use planning ahead like Hnefatafl

Different rules, same kind of thinking.

Try something from another shelf