Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds and reviews deterministic Rust turn-based game flow using turn-state enums, intent messages, and movement and combat resolution.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
If a player generates a WantsToAttack intent targeting a monster, but that monster dies earlier in the same turn schedule, how does intent removal prevent invalid operations?
Delete invalid or processed intent components prior to phase advancement
3 of 3 safety checks passed
Use this skill to make turn-based gameplay deterministic and easy to extend. Separate decision systems from resolution systems: input and AI create intents; movement, combat, inventory, and end-turn systems resolve them.
Read references/turn-intent-patterns.md for phase design, intent messages,
ordering rules, and review checks.
Guidance is transformed and paraphrased from Hands-On Rust Chapters 7, 8, 9, and 13 and from the official companion source repository. The patterns are generalized for Rust ECS projects and do not require using Legion.
Next to this one in the catalogue, plus more from the same author.