From 9613f023b143ab20c275ed13afc9ce1298f82865 Mon Sep 17 00:00:00 2001 From: Gator Date: Tue, 11 Jan 2022 17:21:41 +0100 Subject: [PATCH] useless component, css fluff, comments --- src/components/FormField.vue | 9 --------- src/components/MenuRow.vue | 7 ++++++- src/modules/automata.js | 1 + 3 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 src/components/FormField.vue diff --git a/src/components/FormField.vue b/src/components/FormField.vue deleted file mode 100644 index b872bb2..0000000 --- a/src/components/FormField.vue +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/src/components/MenuRow.vue b/src/components/MenuRow.vue index 66567c5..65579fd 100644 --- a/src/components/MenuRow.vue +++ b/src/components/MenuRow.vue @@ -38,7 +38,12 @@ export default { cursor: pointer; border: 2px solid darkgrey; margin: 0 0 10px 0; - } +} + +select { + margin-top: 10px; + padding: 5px; +} input[type="button"] { min-width: 60px; diff --git a/src/modules/automata.js b/src/modules/automata.js index b146f9c..6f9454d 100644 --- a/src/modules/automata.js +++ b/src/modules/automata.js @@ -73,6 +73,7 @@ function conwayRules(cell, neighbors) { } // get the next evolution of a 2D CA initial state +// Rules : Moore neighborhood function evolve2d(board, rulesFn) { return board.map((row, x) => row.map((cell, y) => { const neighbors = getCellNeighbors(board, [x, y]);