Skip to main content

Module driver

Module driver 

Source
Expand description

The StackDriver — the fixed per-turn firing sequence (design §2).

Replaces BattleDriver::execute_turn for stack-based games. Per turn it: resolves order (with a speed-tie draw), then for each actor fires the move pipeline as a sequence of Events through the mover’s registered Effect, and fires per-mover residual with the first-mover-faint short-circuit (the Gen-1 structural choice, design §2 gap #1). All randomness flows through ctx.rng at the points the events fire, so the byte-stream draw order is auditable and pinnable to a legacy oracle (design §4).

Structs§

StackDriver
The stateless stack-based turn driver (design §2).
StackTurnResult
The outcome of one stack-driven turn.

Enums§

FirstMover
Which side moved first this turn, surfaced for the caller / parity oracle.