Deterministic, off-chain rules engine in shared/game: createMatch, legalActions, applyAction, isOver, result, viewFor, serialisation, Ruleset as data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
862 B
TypeScript
11 lines
862 B
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, 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, allies, activePortal, isOnTopic, type KeywordDef, type PortalDef, type EffectContext } from './keywords.ts';
|
|
export { STARTER_POOL, loanerCard, previewPool, starterDeck } from './starter.ts';
|