From 95fd952b6d4c496efc0e6236ba2acfcbbeee8ed9 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 12 Nov 2023 13:59:50 -0600 Subject: add visualization --- src/simulation/actions.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/simulation/actions.js') diff --git a/src/simulation/actions.js b/src/simulation/actions.js index 4ee17d8..3b3e942 100644 --- a/src/simulation/actions.js +++ b/src/simulation/actions.js @@ -8,6 +8,7 @@ const move_forward = { propose: (world, agent, head) => { if (agent.flags.frozen === true) { return []; } if (head[0] > threshold) { + console.log('move forward'); const dx = { n: 0, e: 1, s: 0, w: -1 }[agent.flags.orientation]; const dy = { n: -1, e: 0, s: 1, w: 0 }[agent.flags.orientation]; return [{ -- cgit v1.2.1