diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 15:27:22 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 15:27:22 -0500 |
commit | a5e378e2b4c075f09d3293ccc301f0e504cb20d7 (patch) | |
tree | 5cadc502f422e180ac82030fd98e01692e4268d0 /main.mjs | |
parent | ed2b76634a6fb1a9fb45abdd7afc7342f5b6f12c (diff) | |
download | molsim2-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.mjs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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() |