src/rules
declarative-hex-worlds / src/rules
src/rules
src/rules/ — gameboard rule engine + plan validation.
./rules— rule definitions and evaluation../rule-types— typed shape of rules, violations, severity../validation— plan-level validators (checks aGameboardPlanagainst the active rule config and returns typed violations).
world-rules.ts (lives in src/ root) is kept separate for now — it owns
the runtime rule-evaluation system that ticks against the koota world,
which is a different concern from authored rule definitions. It moves to
systems/world-rules-system.ts in R2n.
References
canPlaceHarborAt
Re-exports canPlaceHarborAt
canStackAt
Re-exports canStackAt
canStackInPlan
Re-exports canStackInPlan
createSeededGameboardDensityFillRules
Re-exports createSeededGameboardDensityFillRules
createSeededGameboardPieceFillRules
Re-exports createSeededGameboardPieceFillRules
createSeededGameboardPlan
Re-exports createSeededGameboardPlan
createSeededGameboardWorld
Re-exports createSeededGameboardWorld
GameboardPlanValidationConfig
Re-exports GameboardPlanValidationConfig
GameboardRuleConfig
Re-exports GameboardRuleConfig
GameboardRuleViolation
Re-exports GameboardRuleViolation
inspectSeededGameboardPieceFills
Re-exports inspectSeededGameboardPieceFills
inspectSeededGameboardPieceFillSelections
Re-exports inspectSeededGameboardPieceFillSelections
InspectSeededGameboardPieceFillsOptions
Re-exports InspectSeededGameboardPieceFillsOptions
projectWorldToGameboardPlan
Re-exports projectWorldToGameboardPlan
readDecomposedTileSpecs
Re-exports readDecomposedTileSpecs
RuleSeverity
Re-exports RuleSeverity
SeededGameboardDensityContext
Re-exports SeededGameboardDensityContext
SeededGameboardDensityPresetId
Re-exports SeededGameboardDensityPresetId
SeededGameboardDensityRuleOptions
Re-exports SeededGameboardDensityRuleOptions
SeededGameboardDensityValue
Re-exports SeededGameboardDensityValue
SeededGameboardLayoutDensityOptions
Re-exports SeededGameboardLayoutDensityOptions
SeededGameboardOptions
Re-exports SeededGameboardOptions
SeededGameboardPieceFillInspection
Re-exports SeededGameboardPieceFillInspection
SeededGameboardPieceFillMode
Re-exports SeededGameboardPieceFillMode
SeededGameboardPieceFillOptions
Re-exports SeededGameboardPieceFillOptions
SeededGameboardPieceFillSelectionInspection
Re-exports SeededGameboardPieceFillSelectionInspection
setTileElevation
Re-exports setTileElevation
setTileTerrain
Re-exports setTileTerrain
validateGameboardPlan
Re-exports validateGameboardPlan
validateGameboardRules
Re-exports validateGameboardRules
