Eight quality-of-life turns for strangers, newcomers, and veterans
For visitors: the landing shows a clip card of the maze before asking for a name; "Play now against a clockwork wizard" is one tap from the landing to the first turn (the room, the seat, and the flip each follow as the server confirms the last); pass-the-device and seat transfer fold behind "More ways to play". For a first game: automatons default to apprentice until this browser has seen a game through, then step up to adept unless the tier was picked by hand; the council speaks once unasked on a first turn; a finished game offers "play again" (the same bots re-seated in a fresh room) and "share the tale" (the whole replay as a link). For players who know the box: a House rulings tab in help — what the digital table does differently, every rulings revision (now exported from the engine as RULES_REVISIONS, which the deckRev doc block points at), and the 76 cards the FAQ has spoken on. And the arrow keys and WASD walk on the board as they already did in the first-person pane. The recorder's poster settle lengthens to outlast a change-of-eyes wipe; two cards had caught the title card instead of the maze. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
This commit is contained in:
1 parent
2b5c2c4884
commit
53fba77a55
6 files changed
+206
-47
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { allCardDefs } from "@wizwar/engine";
|
||||
import { allCardDefs, RULES_REVISIONS } from "@wizwar/engine";
|
||||
import Card from "./Card.svelte";
|
||||
import Faq from "./Faq.svelte";
|
||||
import { HOW_TO_PLAY, RULES_SECTIONS } from "./rules";
|
||||
@@ -13,13 +13,15 @@
|
||||
onstats,
|
||||
}: {
|
||||
onclose: () => void;
|
||||
initialTab?: "play" | "rules" | "cards" | "about" | "tally";
|
||||
initialTab?: "play" | "rules" | "cards" | "rulings" | "about" | "tally";
|
||||
stats?: Record<string, number | string | null> | null;
|
||||
onstats?: () => void;
|
||||
} = $props();
|
||||
|
||||
// svelte-ignore state_referenced_locally -- the initial tab is intentionally a one-time value
|
||||
let tab = $state<"play" | "rules" | "cards" | "about" | "tally">(initialTab);
|
||||
let tab = $state<"play" | "rules" | "cards" | "rulings" | "about" | "tally">(initialTab);
|
||||
/** Cards the FAQ has spoken on, in the library's order. */
|
||||
const ruledCards = allCardDefs().filter((c) => c.faqRulings.length > 0);
|
||||
let faqCardId = $state<string | null>(null);
|
||||
let libPeek = $state<string | null>(null);
|
||||
|
||||
@@ -81,6 +83,7 @@
|
||||
<button class:current={tab === "play"} onclick={() => (tab = "play")}>How to play</button>
|
||||
<button class:current={tab === "rules"} onclick={() => (tab = "rules")}>The rules</button>
|
||||
<button class:current={tab === "cards"} onclick={() => (tab = "cards")}>Card library</button>
|
||||
<button class:current={tab === "rulings"} onclick={() => (tab = "rulings")}>House rulings</button>
|
||||
<button class:current={tab === "about"} onclick={() => (tab = "about")}>About</button>
|
||||
<button class:current={tab === "tally"} onclick={openTally}>The tally</button>
|
||||
</nav>
|
||||
@@ -184,6 +187,50 @@
|
||||
<h3>{section.title}</h3>
|
||||
{#each section.body as p, i (i)}<p>{p}</p>{/each}
|
||||
{/each}
|
||||
{:else if tab === "rulings"}
|
||||
<p class="colophon">
|
||||
For players who know the box. Where this table departs from the
|
||||
cardboard, and the calls it makes where the rulebook is silent.
|
||||
Every game is frozen at the revision it was dealt under, so an old
|
||||
game replays exactly as it was played. If the table rules against
|
||||
your memory of the rules, the 🐞 report button pins the moment
|
||||
for review — the reply lands in your lobby.
|
||||
</p>
|
||||
<h3>What the digital table does differently</h3>
|
||||
<p>THE THUMB OF GOD is a divine meteor. Aim it at a square; the die
|
||||
drifts up to two squares in a random direction, then every token in
|
||||
and around the landing square — objects, treasures, creatures, even
|
||||
wizards — is flung to a random nearby square. Walls mean nothing to
|
||||
falling cardboard, and there is no counteraction.</p>
|
||||
<p>An ILLUSION WALL is real only to those who believe it. Its creator
|
||||
sees through it from the start; everyone else sees stone until they
|
||||
walk into it or see through it, and the maze remembers each
|
||||
wizard's verdict separately. An untested illusion shimmers faintly.</p>
|
||||
<p>An ambush (OPPORTUNITY FIRE) is set with the attack card it will
|
||||
fire and a trigger of your choice: an opponent entering your line of
|
||||
sight, coming within one square, or picking up any treasure. It
|
||||
springs on their turn, out of yours.</p>
|
||||
<p>Clockwork wizards — the automatons — play from the same redacted
|
||||
view a human seat gets and obey every rule; a tier changes what
|
||||
they draw and know, never how correctly they play.</p>
|
||||
<p>A turn need not be taken at once. Games wait on the lobby ledger
|
||||
for days; the browser holds your seat; a replay of any game can be
|
||||
watched from above or through a wizard's eyes and shared by link.</p>
|
||||
<h3>Rulings by revision</h3>
|
||||
<p class="colophon">Each revision below changed how something resolves; games dealt before it keep the old reading.</p>
|
||||
<dl class="revisions">
|
||||
{#each RULES_REVISIONS as r (r.rev)}
|
||||
<dt>Rev {r.rev}</dt><dd>{r.note}</dd>
|
||||
{/each}
|
||||
</dl>
|
||||
<h3>Card rulings from the FAQ</h3>
|
||||
<p class="colophon">{ruledCards.length} cards carry rulings from the official FAQ; the engine follows them.</p>
|
||||
{#each ruledCards as c (c.id)}
|
||||
<details class="ruling">
|
||||
<summary>{c.name}</summary>
|
||||
{#each c.faqRulings as q, i (i)}<p>{q}</p>{/each}
|
||||
</details>
|
||||
{/each}
|
||||
{:else if tab === "rules"}
|
||||
<p class="colophon">
|
||||
Sixth edition rules, from the original rulebook. © 1985 Jolly Games —
|
||||
@@ -336,6 +383,13 @@
|
||||
margin: 1.2rem 0 0.4rem;
|
||||
}
|
||||
.booklet-body h3:first-child { margin-top: 0; }
|
||||
.revisions { margin: 0.4rem 0 1rem; }
|
||||
.revisions dt { font-family: "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin-top: 0.6rem; }
|
||||
.revisions dd { margin: 0.1rem 0 0; }
|
||||
.revisions dd::first-letter { text-transform: uppercase; }
|
||||
.ruling { margin: 0.3rem 0; }
|
||||
.ruling summary { cursor: pointer; font-weight: 600; }
|
||||
.ruling p { margin: 0.3rem 0 0.5rem 1rem; }
|
||||
.booklet-body p { margin: 0.35rem 0; }
|
||||
.colophon { font-style: italic; color: #6b5a41; font-size: 0.85rem; }
|
||||
.booklet-body a { color: #8a4a1f; text-decoration-style: dotted; }
|
||||
|
||||
Reference in new issue
Block a user