diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 21:43:02 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 21:43:02 -0500 |
commit | 5fc666628d982360afc6ab25fe0f2c36cc13518b (patch) | |
tree | 7b446812f9a9b852c9e4e988681aeffaa8285354 | |
parent | 1f59514d74ade81df77005542da2a00377d48b69 (diff) | |
download | molsim2-5fc666628d982360afc6ab25fe0f2c36cc13518b.tar.gz molsim2-5fc666628d982360afc6ab25fe0f2c36cc13518b.zip |
Take max iterations into account when skipping generations.
-rw-r--r-- | rules.mjs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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', |