diff options
author | sanine <sanine.not@pm.me> | 2023-11-10 11:24:56 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-10 11:24:56 -0600 |
commit | 428062dccb362627b4251945632c75d9db8f93f7 (patch) | |
tree | 27d50a332414ccd105997827102ff0a59403f58e /src/world/world.js | |
parent | 1b92f501c40eded57d66946ff717e49a5362f7c3 (diff) |
refactor senses to use world instead of lattice only
Diffstat (limited to 'src/world/world.js')
-rw-r--r-- | src/world/world.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]], [[], []] |