summaryrefslogtreecommitdiffstats
path: root/rules.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-06 11:19:50 -0500
committerBrian Cully <bjc@kublai.com>2021-02-06 11:19:50 -0500
commit27d98187a8d7288e0c9d65c09fd6737900cc9883 (patch)
tree64b1095bc70a50939bfe618a0bf503d8ad867803 /rules.mjs
parente92ad9f4b19a0670a80cdd293970c3a08c27a8b4 (diff)
downloadmolsim-27d98187a8d7288e0c9d65c09fd6737900cc9883.tar.gz
molsim-27d98187a8d7288e0c9d65c09fd6737900cc9883.zip
Change 'translation' to 'transition'.
Diffstat (limited to 'rules.mjs')
-rw-r--r--rules.mjs10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.mjs b/rules.mjs
index cc1363b..3658393 100644
--- a/rules.mjs
+++ b/rules.mjs
@@ -146,7 +146,7 @@ class PerformMutation {
get expectedMutation() {
if (this.rules.die.value <= 14) {
- return Nucleotide.translation
+ return Nucleotide.transition
} else if (this.rules.die.value <= 17) {
return Nucleotide.complementingTransversion
} else {
@@ -158,8 +158,8 @@ class PerformMutation {
return this.rules.currentGenome.selectedNucleotide
}
- get errorTranslationHTML() {
- return `Select the base that corresponds to a <em>translation</em> of ${this.selectedNucleotide.value}.`
+ get errorTransitionHTML() {
+ return `Select the base that corresponds to a <em>transition</em> of ${this.selectedNucleotide.value}.`
}
get errorComplementingTransversionHTML() {
return `Select the base that corresponds to a <em>complementing transversion</em> of ${this.selectedNucleotide.value}.`
@@ -169,8 +169,8 @@ class PerformMutation {
}
get errorHTML() {
- if (this.expectedMutation == Nucleotide.translation) {
- return this.errorTranslationHTML
+ if (this.expectedMutation == Nucleotide.transition) {
+ return this.errorTransitionHTML
} else if (this.expectedMutation == Nucleotide.complementingTransversion) {
return this.errorComplementingTransversionHTML
} else {