summaryrefslogtreecommitdiffstats
path: root/index.html
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 /index.html
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 'index.html')
-rw-r--r--index.html35
1 files changed, 13 insertions, 22 deletions
diff --git a/index.html b/index.html
index aa3a25b..2d96b9d 100644
--- a/index.html
+++ b/index.html
@@ -29,26 +29,22 @@
<span id='remaining-iterations'>--</span> more times:
<ol>
- <li id='clone-nucleotide' class='step'>
- <button id='clone' disabled=''>Clone</button> the genome to
- start mutating it.
- </li>
-
<li id='roll-for-nucleotide' class='step'>
Roll to find the nucleotide to mutate.
+ </li>
+
+ <li id='nucleotide-select' class='step'>
+ Depending on the roll:
+
<ul>
<li>If the roll is between 1 through 18, inclusive, select
that nucleotide.</li>
- <li>Otherwise, skip mutation and clone the genome
- again.</li>
+ <li>Otherwise, skip mutation and
+ <button class='clone' disabled=''>clone</button> the
+ genome again.</li>
</ul>
</li>
- <li id='nucleotide-select' class='step'>
- Select the <span id='select-number'>rolled</span>
- nucleotide in the sequence.
- </li>
-
<li id='roll-for-mutation' class='step'>
Roll to see what kind of mutation to perform.
</li>
@@ -76,12 +72,12 @@
<li id='mark-as-lethal'>
Depending on the change to the codon:
<ul>
- <li>If the mutation caused a change in the amino acid being
- coded, mark this mutation as <em>lethal</em>, and start
- over with the genome from the previous iteration.</li>
+ <li>If the mutation caused a change in the amino acid
+ being coded, then <button id='kill' disabled=''>kill</button> it and
+ start again with the previous generation.</li>
- <li>Otherwise, mark the mutation as <em>non-lethal</em>,
- and continue with this new genome.</li>
+ <li>Otherwise, <button id='clone' disabled=''>clone</button> this
+ genome for the next generation.</li>
</ul>
</li>
</ol>
@@ -130,11 +126,6 @@
</ul>
</div>
- <div id='lethality-selector' class='hidden'>
- <button id='lethal'>Lethal</button>
- <button id='non-lethal'>Non-lethal</button>
- </div>
-
<script src='main.mjs' type='module'></script>
</body>
</html>