From f7b0ed22b2fd0ddafc4a84dde1ad8e3208144844 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 11 Nov 2023 15:04:36 -0600 Subject: gol changes make sound --- src/world/world.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/world/world.js') 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)) -- cgit v1.2.1