From 7825b92ce3be95a0ce1dfea9388adbaadce83b1f Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 12 Nov 2023 15:18:29 -0600 Subject: fix bugs --- src/simulation/senses.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/simulation/senses.js') diff --git a/src/simulation/senses.js b/src/simulation/senses.js index 9d50a83..970f86b 100644 --- a/src/simulation/senses.js +++ b/src/simulation/senses.js @@ -150,7 +150,7 @@ function see_agent(viewer, agent) { const see = { - size: VIS_WIDTH * VIS_HEIGHT, + size: 3*VIS_WIDTH * VIS_HEIGHT, read: (world, agent) => { const indices = [...Array(VIS_WIDTH*VIS_HEIGHT).keys()] const vision = indices @@ -171,12 +171,12 @@ const see = { }, vision ); - return result; + return result.flat(); }, }; export const senses = [ - frozen, hear, see, + frozen, hear, see, { size: 1, read: () => [1] }, ]; -- cgit v1.2.1