summaryrefslogtreecommitdiffstats
path: root/main.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 15:27:22 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 15:27:22 -0500
commita5e378e2b4c075f09d3293ccc301f0e504cb20d7 (patch)
tree5cadc502f422e180ac82030fd98e01692e4268d0 /main.mjs
parented2b76634a6fb1a9fb45abdd7afc7342f5b6f12c (diff)
downloadmolsim2-a5e378e2b4c075f09d3293ccc301f0e504cb20d7.tar.gz
molsim2-a5e378e2b4c075f09d3293ccc301f0e504cb20d7.zip
Alter rule flow
It’s simpler to put kill/clone buttons on the final step, so kill the initial clone step. This is probably more sensible overall. The old, clone first method was done to simplify the state machine at the time, at the cost of expected instruction order.
Diffstat (limited to 'main.mjs')
-rw-r--r--main.mjs4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.mjs b/main.mjs
index 613eded..cb2b207 100644
--- a/main.mjs
+++ b/main.mjs
@@ -5,14 +5,12 @@ function init() {
const die = document.querySelector('#die')
const aminoAcidSelector = document.querySelector('#amino-acid-selector')
const nucleotideSelector = document.querySelector('#nucleotide-selector')
- const lethalitySelector = document.querySelector('#lethality-selector')
const instructions = document.querySelector('#instructions')
- const cloneButton = document.querySelector('#clone')
const remainingIterations = document.querySelector('#remaining-iterations')
const printButton = document.querySelector('#print')
const errors = document.querySelector('#errors')
- const rules = new Rules(die, instructions, genomeList, aminoAcidSelector, nucleotideSelector, lethalitySelector, cloneButton, remainingIterations, printButton, errors)
+ const rules = new Rules(die, instructions, genomeList, aminoAcidSelector, nucleotideSelector, remainingIterations, printButton, errors)
}
init()