control tabs, organism editor, code refactor

This commit is contained in:
MaxRobinsonTheGreat
2020-07-18 00:31:46 -06:00
parent 2fc2ba7b80
commit ebb39df34a
21 changed files with 524 additions and 402 deletions

21
src/Grid/Neighbors.js Normal file
View File

@@ -0,0 +1,21 @@
// contains local cell values for the following:
//all ...
// .x.
// ...
//adjacent .
// .x.
// .
//corners . .
// x
// . .
const Neighbors = {
all: [[0, 1],[0, -1],[1, 0],[-1, 0],[-1, -1],[1, 1],[-1, 1],[1, -1]],
adjacent: [[0, 1],[0, -1],[1, 0],[-1, 0]],
corners: [[-1, -1],[1, 1],[-1, 1],[1, -1]]
}
module.exports = Neighbors;