forked from WikiDeck/wikideck
Modes are inert JSON (shared/game/modes.ts): rule overrides on the engine's DEFAULT_RULESET, re-validated by parseRuleset; card-mapping presets from a fixed list; deck policy and limits. server/game/ publishes this node's modes, discovers configured peers' modes as data (byte cap, timeout, pinned origin), and hosts lobbies, snake drafts and matches with the deterministic engine. Finished matches are off-chain JSONL records with seed, decks and action log (replayable). Per-mode and host leaderboards. Docs in docs/game/HOSTING.md, including security notes and an on-chain host-reward proposal. One mount line in server/testnet/http.ts; no consensus changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
754 B
JSON
37 lines
754 B
JSON
{
|
|
"schema": "wikideck.mode/1",
|
|
"id": "draft",
|
|
"version": 1,
|
|
"name": "Snake Draft",
|
|
"description": "Both players snake-draft 10-card decks from one shared, host-seeded pool of 30 preview cards, then play the base rules with a 4-card opening hand. Nobody brings cards, so everyone starts even.",
|
|
"tags": [
|
|
"draft",
|
|
"no-collection"
|
|
],
|
|
"rules": {
|
|
"deck": {
|
|
"min": 10,
|
|
"max": 10,
|
|
"maxCopiesPerPage": 2
|
|
},
|
|
"hand": {
|
|
"start": 4,
|
|
"max": 7,
|
|
"drawPerTurn": 1
|
|
}
|
|
},
|
|
"cards": {
|
|
"preset": "standard"
|
|
},
|
|
"decks": {
|
|
"kind": "draft",
|
|
"poolSize": 30,
|
|
"pickSeconds": 30
|
|
},
|
|
"limits": {
|
|
"maxConcurrentMatches": 16,
|
|
"turnSeconds": 90,
|
|
"lobbyMinutes": 15
|
|
}
|
|
}
|