Skip to main content

do_tick

Function do_tick 

Source
pub fn do_tick(world: &mut DeckWorld)
Available on crate feature raster only.
Expand description

Port of doTick() (topology-deck.html:243-252, Task 10). Order verbatim (Finding 1): (1) wealth extraction over world.extraction — take = mass·0.12; each tail loses take/|tails| under a Math.max(0.2, …) floor; the head gains take·0.8; every bloc-1 (core-labor) agent gains take·0.2/9; THEN (2) c-accumulation — each industry’s c ×= 1.035 if lane>=2 else ×= 1.015 (v,e untouched). Does not itself call transform — callers compute readouts from the mutated world.industries afterward (the crate’s transform is a pure fn with no Industry-side effects to “re-run”, unlike the deck’s closure-captured W.industries). Bounded: world.extraction.len() * (max tails + agents.len()) + world.industries.len().