summaryrefslogtreecommitdiff
path: root/src/simulation/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/actions.js')
-rw-r--r--src/simulation/actions.js1
1 files changed, 1 insertions, 0 deletions
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 [{