useless component, css fluff, comments
This commit is contained in:
parent
93f9426f56
commit
9613f023b1
@ -1,9 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="form-field" v-if="type === 'checkbox'">
|
|
||||||
<label>{{ name }}
|
|
||||||
<input type="checkbox" name="{{ name }}">
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-field" v-else-if="type === ''">
|
|
||||||
</div>
|
|
||||||
</template>
|
|
@ -40,6 +40,11 @@ export default {
|
|||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="button"] {
|
input[type="button"] {
|
||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
@ -73,6 +73,7 @@ function conwayRules(cell, neighbors) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the next evolution of a 2D CA initial state
|
// get the next evolution of a 2D CA initial state
|
||||||
|
// Rules : Moore neighborhood
|
||||||
function evolve2d(board, rulesFn) {
|
function evolve2d(board, rulesFn) {
|
||||||
return board.map((row, x) => row.map((cell, y) => {
|
return board.map((row, x) => row.map((cell, y) => {
|
||||||
const neighbors = getCellNeighbors(board, [x, y]);
|
const neighbors = getCellNeighbors(board, [x, y]);
|
||||||
|
Loading…
Reference in New Issue
Block a user