From 5db89edbc11d878aa804e311a421af19ac5ea0ed Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Wed, 23 Sep 2026 18:48:53 -0400 Subject: [PATCH] Coordinates on the board, moves in the record shown on the board, a status strip above it with the capture in words, notes under the variant selector and a still that follows it, keyboard play, and a way back to the game from the rules From a tester's review. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG --- src/lib/components/Board.svelte | 310 +++++++++++++++++++++------- src/lib/components/Hall.svelte | 58 ++++-- src/lib/game/index.ts | 12 +- src/lib/game/spec.ts | 3 +- src/routes/guide/+page.svelte | 38 +++- src/routes/join/[code]/+page.svelte | 2 +- src/routes/rules/+page.svelte | 13 +- 7 files changed, 329 insertions(+), 107 deletions(-) diff --git a/src/lib/components/Board.svelte b/src/lib/components/Board.svelte index d7f3c21..4343d0b 100644 --- a/src/lib/components/Board.svelte +++ b/src/lib/components/Board.svelte @@ -1,10 +1,13 @@ @@ -9,7 +13,7 @@
- Back to the hall · How to play + {#if room}Back to your game · {/if}Back to the hall · How to play

The rules

Hnefatafl is the tafl family's best-known member: a Viking board game played across Scandinavia and the North Atlantic from the fourth century until chess displaced it. No @@ -30,8 +34,9 @@

Moving

- Every piece moves like a rook in chess: any number of empty squares along a row or column, never diagonally, never over another piece. Only the king may stop on the throne - or on a corner square. In Copenhagen an ordinary piece may pass across the empty throne; in Tablut it may not. + Every piece moves like a rook in chess: any number of empty squares along a row or column, never diagonally, never over another piece. Only the king may stop on the throne, and + in Copenhagen only the king may enter the four marked corners; in Tablut the corners are ordinary squares. In Copenhagen an ordinary piece may pass across the empty throne; + in Tablut it may not.

@@ -39,7 +44,7 @@

Capturing

A piece is captured when the moving piece closes it between itself and another enemy piece on the opposite side, along a row or column. A piece may safely move between two - enemies: only the mover captures. The four corners and the empty throne stand in for an enemy piece, so a piece pinned against one of them by a single enemy is taken. The + enemies: only the mover captures. The empty throne stands in for an enemy piece, and in Copenhagen so do the four marked corners, so a piece pinned against one of them by a single enemy is taken. The king takes part in captures like any piece.