ludic/packages/ludic.steps/index.ludic
Orkuncakilkaya 31e6740033 feat(ludic.steps): chapters of steps, their kinds, progress and a party's pooled shares
A step is (kind, param, need) and a question about state: a kind has a
shape (yes, a count, a mask counted, every bit of a mask) and a pool
(world, any, sum, or, max, each), handed in by the game as StepsKind
records. An arc is chapters of up to STEPS_PER_CHAPTER steps; steps_check
sticks each met step of the current chapter (STEPS_MET) and opens the
next when all are (STEPS_CHAPTER), so a step met before its chapter
ticks at once. With company each seat's shares are held per chapter,
pooled as the kind says (steps_met, steps_party_got), counted for an
EACH step (steps_each, steps_lacking), and a leaver takes theirs along.

Port: StepsWorld { value(kind, param, player) (required), party,
present }. The package knows no kind's meaning and no chapter's words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:02:39 +03:00

11 lines
386 B
Text

# ludic.steps - a step is a question about state, answered by the game through a port; a chapter
# is a table of steps; the current one ticks its steps as they are met and moves on when all are
module ludic_steps uses ludic_base
numbers float
import "ludic.base"
import "state.ludic"
import "kinds.ludic"
import "arc.ludic"
import "check.ludic"
import "party.ludic"
import "each.ludic"