diff options
author | sanine <sanine.not@pm.me> | 2023-11-11 15:04:36 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-11 15:04:36 -0600 |
commit | f7b0ed22b2fd0ddafc4a84dde1ad8e3208144844 (patch) | |
tree | e290cda13f58eb9a2e3cf2e5e7b05748a0c8e982 /src/world/world.js | |
parent | c2466a35fb1edce6088b72df17444631f7034e07 (diff) |
gol changes make sound
Diffstat (limited to 'src/world/world.js')
-rw-r--r-- | src/world/world.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/world/world.js b/src/world/world.js index 4bab4d3..63d974a 100644 --- a/src/world/world.js +++ b/src/world/world.js @@ -16,7 +16,10 @@ import { proposal_merge } from './proposal.js'; export function world_update(world, postprocess=[]) { const lattice_props = lattice_update(world.lattice, world.lattice_rules); - const intermediate_lattice = lattice_apply(world.lattice, lattice_props); + const intermediate_lattice = lattice_apply( + world.lattice.map(row => row.map(cell => ({ ...cell, flags: {} }))), + lattice_props + ); const decisions = world.agents .map(a => agent_decide(world, a, world.senses, world.actions)) |