summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 21:43:02 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 21:43:02 -0500
commit5fc666628d982360afc6ab25fe0f2c36cc13518b (patch)
tree7b446812f9a9b852c9e4e988681aeffaa8285354
parent1f59514d74ade81df77005542da2a00377d48b69 (diff)
downloadmolsim2-5fc666628d982360afc6ab25fe0f2c36cc13518b.tar.gz
molsim2-5fc666628d982360afc6ab25fe0f2c36cc13518b.zip
Take max iterations into account when skipping generations.
-rw-r--r--rules.mjs7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.mjs b/rules.mjs
index f36a956..f9e9e1b 100644
--- a/rules.mjs
+++ b/rules.mjs
@@ -416,10 +416,11 @@ class Rules {
const g = this.currentGenome.clone()
this.genomeList.push(g)
})
+ this.iterations -= n
this.currentState = new PerformMutation(this)
- this.die.value = 18
- const nucleotide = this.currentGenome.nucleotides[this.die.value-1]
+ this.die.value = 14
+ const nucleotide = this.currentGenome.nucleotides[17]
this.currentGenome.selectedNucleotide = nucleotide
}
@@ -484,7 +485,7 @@ class Rules {
this.enterState()
}
}
-Rules.maxIterations = 3
+Rules.maxIterations = 10
Rules.initialGenomeBases = [
'G', 'C', 'A',
'C', 'T', 'C',