- Mode schema wikideck.mode/2: required `engine` (editwar | duel); Night 1
wikideck.mode/1 documents are rejected with a clear message. Deck policies:
constructed (owned NFT token ids, minConfirmations), starter (Edit War only),
draft with source preview (Edit War only) or collections. limits.rated and
limits.accountsOnly.
- ModeHost runs every engine it is given, chosen per mode. Duel modes refuse
loaner policies at startup (BRIEF decision 1).
- Seats: eom.dev account via Dex ID token (body or JWT bearer on seat-creating
routes), player id sha256('acct:'+iss+'\n'+sub); guests only in Edit War.
- Constructed decks resolved through an injected OwnershipPort (#57), cards built
by the engine's fromChain; creator's deck re-resolved at join.
- Private lobbies + invite codes (GET /invites/:code, POST /invites/:code/join),
quick match (POST /modes/:id/quick), lobby state version with 204 on ?v=.
- Elo (1200, K 24) per mode for rated account-vs-account matches, recomputed
from matches.jsonl; records carry engine, rated, tokens. /modes/:id/ladder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
683 B
JSON
31 lines
683 B
JSON
{
|
|
"schema": "wikideck.mode/2",
|
|
"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"
|
|
],
|
|
"engine": "editwar",
|
|
"rules": {
|
|
"deckSize": 10,
|
|
"openingHand": 4
|
|
},
|
|
"cards": {
|
|
"preset": "standard"
|
|
},
|
|
"decks": {
|
|
"kind": "draft",
|
|
"source": "preview",
|
|
"poolSize": 30,
|
|
"pickSeconds": 30
|
|
},
|
|
"limits": {
|
|
"maxConcurrentMatches": 16,
|
|
"turnSeconds": 90,
|
|
"lobbyMinutes": 15
|
|
}
|
|
}
|