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/postprocess.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/simulation/postprocess.js (limited to 'src/simulation/postprocess.js') 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; - } - }), - }), -]; -- cgit v1.2.1