control tabs, organism editor, code refactor
This commit is contained in:
21
src/Grid/Neighbors.js
Normal file
21
src/Grid/Neighbors.js
Normal 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;
|
||||
Reference in New Issue
Block a user