diff options
author | sanine <sanine.not@pm.me> | 2023-11-10 11:24:56 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-10 11:24:56 -0600 |
commit | 428062dccb362627b4251945632c75d9db8f93f7 (patch) | |
tree | 27d50a332414ccd105997827102ff0a59403f58e /src/world/sense.js | |
parent | 1b92f501c40eded57d66946ff717e49a5362f7c3 (diff) |
refactor senses to use world instead of lattice only
Diffstat (limited to 'src/world/sense.js')
-rw-r--r-- | src/world/sense.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world/sense.js b/src/world/sense.js index 47329b7..9b5c7d4 100644 --- a/src/world/sense.js +++ b/src/world/sense.js @@ -8,10 +8,10 @@ */ -export function sense_read(lattice, agent, sense) { - const result = sense.read(lattice, agent); +export function sense_read(world, agent, sense) { + const result = sense.read(world, agent); if (result.length !== sense.size) { throw new Error(`Expected result of size ${sense.size}, but got ${result.length} instead.`); } - return sense.read(lattice, agent); + return result; } |