diff options
author | sanine <sanine.not@pm.me> | 2023-11-12 13:59:50 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-12 13:59:50 -0600 |
commit | 95fd952b6d4c496efc0e6236ba2acfcbbeee8ed9 (patch) | |
tree | 2fd28076f9fe119481dcb439865b4076d00fc692 /src/world | |
parent | 22fe18beac4459427c2b40499afafc7c5c868691 (diff) |
add visualization
Diffstat (limited to 'src/world')
-rw-r--r-- | src/world/agent.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/world/agent.js b/src/world/agent.js index 3faa3c8..dbfdf5d 100644 --- a/src/world/agent.js +++ b/src/world/agent.js @@ -7,6 +7,7 @@ import { proposal_merge } from './proposal.js'; export function agent_decide(world, agent, senses, actions) { const inputs = senses.map(s => sense_read(world, agent, s)).flat(); const [result, state] = agent.net.compute(inputs, agent.state); + console.log(agent, result); const new_agent = { ...agent, state }; const [proposals, _] = actions.reduce( |