From 428062dccb362627b4251945632c75d9db8f93f7 Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 10 Nov 2023 11:24:56 -0600 Subject: refactor senses to use world instead of lattice only --- src/world/world.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world/world.js') diff --git a/src/world/world.js b/src/world/world.js index 87d0aed..e1d984d 100644 --- a/src/world/world.js +++ b/src/world/world.js @@ -8,7 +8,7 @@ export function world_update(world, postprocess=[]) { const intermediate_lattice = lattice_apply(world.lattice, lattice_props); const decisions = world.agents - .map(a => agent_decide(world.lattice, agent, world.senses, world.actions)) + .map(a => agent_decide(world, agent, world.senses, world.actions)) .reduce( ([agents, props], [agent, prop]) => [[...agents, agent], [...props, prop]], [[], []] -- cgit v1.2.1