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/simulation/validity.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/simulation/validity.js (limited to 'src/simulation/validity.js') diff --git a/src/simulation/validity.js b/src/simulation/validity.js deleted file mode 100644 index de4acd1..0000000 --- a/src/simulation/validity.js +++ /dev/null @@ -1,14 +0,0 @@ -export const validity = [ - // prevent agents from moving onto immutables - (world, proposal) => (proposal.agent_changes || []).reduce( - (acc, change) => { - const {x, y} = change; - if (x !== undefined && y !== undefined && world.lattice[y][x].type === 'immutable') { - return false; - } else { - return acc; - } - }, - true, - ), -]; -- cgit v1.2.1