Files
wikideck/shared/game/index.ts
T
claudeandClaude Opus 5.5 9f5fca0049 game: RULESET_V1_1 (DESIGN #32) + §12.1 golden test; derivation defaults follow DEFAULT_RULESET; unit tests pinned to v1.0
DEFAULT_RULESET stays v1.0 until the balance report confirms v1.1.
The full game suite also passes with DEFAULT_RULESET = RULESET_V1_1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:00:19 -05:00

21 lines
1.3 KiB
TypeScript

/** Public entry point of the WikiDeck game engine. Other teams import only from here. See docs/game/ENGINE_API.md. */
export * from './types.ts';
export { Rng, seedFromString, normalizeSeed, type RngState } from './rng.ts';
export { DEFAULT_RULESET, RULESET_V1_0, RULESET_V1_1, DEFAULT_TOPIC_POOL, RulesetSchema, TopicSchema, parseRuleset } from './ruleset.ts';
export {
ENGINE_VERSION, createMatch, legalActions, applyAction, actionProblem, isOver, result, viewFor,
serialize, deserialize, replay, validateDeck, cardPower, lanePower, laneLeader, laneCapacity, scoringPower, topicsLed, other, placeCard, revealPortal,
} from './engine.ts';
export {
KEYWORDS, PORTALS, KEYWORD_IDS, PORTAL_IDS, FACTION_KEYWORD, V1_KEYWORDS, OPTIONAL_KEYWORDS, allies, activePortal, isOnTopic, hiddenFrom,
type KeywordDef, type PortalDef, type EffectContext,
} from './keywords.ts';
export {
DEFAULT_DERIVATION, HOME_TIE_ORDER, percentile, percentiles, fame, costFor, homeStat, trendFor, keywordFor, deriveCard, deriveDeck,
type CardInput, type PercentileTable, type DerivationRules,
} from './derive.ts';
export {
STARTER_POOL, STARTER_DECKS, loanerCard, loanerInput, previewPool, starterDeck, starterDeckById, type StarterDeckDef,
} from './starter.ts';
export { CARD_SAMPLE_PERCENTILES, LOANER_SNAPSHOTS, type LoanerSnapshot } from './card-data.ts';