From f9fc4d26ec5fca9ee175c8a6fbcdd0fa36f10947 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 16 Nov 2023 14:50:00 -0600 Subject: clear out js files --- src/world/sense.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/world/sense.js (limited to 'src/world/sense.js') diff --git a/src/world/sense.js b/src/world/sense.js deleted file mode 100644 index 9b5c7d4..0000000 --- a/src/world/sense.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -/* sense structure: - * { - * size: number - * read: function(lattice, agent) -> number[size] - * } - */ - - -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 result; -} -- cgit v1.2.1