summaryrefslogtreecommitdiff
path: root/src/simulation/postprocess.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/postprocess.js')
-rw-r--r--src/simulation/postprocess.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/simulation/postprocess.js b/src/simulation/postprocess.js
deleted file mode 100644
index d50839e..0000000
--- a/src/simulation/postprocess.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-export const postprocess = [
- (world) => ({
- ...world,
- agents: world.agents.map(a => {
- const {x, y} = a;
- if (
- world.lattice[y][x].type === 'mutable' ||
- world.lattice[y][x].type === 'active'
- ) {
- return { ...a, flags: {...a.flags, frozen: true } };
- } else {
- return a;
- }
- }),
- }),
-];