diff options
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; } |