summaryrefslogtreecommitdiff
path: root/src/world/agent.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-10 19:51:02 -0600
committersanine <sanine.not@pm.me>2023-11-10 19:51:02 -0600
commit984f07a24d3d377c13358fc5533c0eda383858f5 (patch)
treef5031a2abc9b5382c3c1f585481a82a4da7553da /src/world/agent.js
parent57172b8c3c851497b55b5d4c90ddb0cb5f9b202c (diff)
refactor: actions take an additional world parameter
Diffstat (limited to 'src/world/agent.js')
-rw-r--r--src/world/agent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world/agent.js b/src/world/agent.js
index 576ebc4..3faa3c8 100644
--- a/src/world/agent.js
+++ b/src/world/agent.js
@@ -15,7 +15,7 @@ export function agent_decide(world, agent, senses, actions) {
const tail = result.slice(action.size);
const props = action
- .propose(new_agent, head)
+ .propose(world, new_agent, head)
.reduce(
(acc, proposal) => proposal_merge(acc, proposal),
proposals