diff options
Diffstat (limited to 'src/world/lattice.test.js')
-rw-r--r-- | src/world/lattice.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/world/lattice.test.js b/src/world/lattice.test.js index 7c71d04..c2fdb6b 100644 --- a/src/world/lattice.test.js +++ b/src/world/lattice.test.js @@ -34,6 +34,15 @@ test("growth update rule", () => { }); +//test("agents cannot move into non-empty tiles", () => { +// const lattice = [[ {type: 'empty', flags: {}}, {type: 'filled', flags: {}} ]]; +// const bad_prop = [{ agent_updates: [{ agent_id: 14, x: 1, y: 0 }] }]; +// expect(lattice_valid(lattice, bad_prop)).toBe(false); +// const good_prop = [{ agent_updates: [{ agent_id: 14, x: 0, y: 0 }] }]; +// expect(lattice_valid(lattice, bad_prop)).toBe(true); +//}); + + test("growth update rule applied", () => { const lattice = [[ { type: 'empty', flags: {} }, |