summaryrefslogtreecommitdiffstats
path: root/genome.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-18 16:42:29 -0500
committerBrian Cully <bjc@kublai.com>2021-02-18 16:42:29 -0500
commit7dfbc8499ee964b2e2ca79d8a8039e0c262f48f5 (patch)
treea9c99708601029842e4dbdb6d5b784dd058b53bb /genome.mjs
parentc7f2bd8f2c2da652baff5ebc35562f7567574c9e (diff)
downloadmolsim2-7dfbc8499ee964b2e2ca79d8a8039e0c262f48f5.tar.gz
molsim2-7dfbc8499ee964b2e2ca79d8a8039e0c262f48f5.zip
Remove Genome.size
This was originally for random genome generation, but since the initial is hard coded now, use that instead.
Diffstat (limited to 'genome.mjs')
-rw-r--r--genome.mjs8
1 files changed, 0 insertions, 8 deletions
diff --git a/genome.mjs b/genome.mjs
index ed69dbf..581e9a8 100644
--- a/genome.mjs
+++ b/genome.mjs
@@ -3,12 +3,6 @@ import Die from './die.mjs'
import { randomItem } from './utils.mjs'
class Genome {
- static *randomBase() {
- for (const i of [...Array(Genome.size)]) {
- yield randomItem(Nucleotide.bases)
- }
- }
-
constructor(nucleotides) {
const codonList = document.createElement('ol')
this._boundNucleotideClickedHandler =
@@ -81,7 +75,5 @@ class Genome {
this.selectedNucleotide = nucleotide
}
}
-// Size of the genome in codons.
-Genome.size = 6
export default Genome