summaryrefslogtreecommitdiff
path: root/src/simulation/validity.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-16 14:50:00 -0600
committersanine <sanine.not@pm.me>2023-11-16 14:50:00 -0600
commitf9fc4d26ec5fca9ee175c8a6fbcdd0fa36f10947 (patch)
treef190e6e465bb563c608a916f41fc8bf686ea2897 /src/simulation/validity.js
parent7825b92ce3be95a0ce1dfea9388adbaadce83b1f (diff)
clear out js files
Diffstat (limited to 'src/simulation/validity.js')
-rw-r--r--src/simulation/validity.js14
1 files changed, 0 insertions, 14 deletions
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,
- ),
-];