From bdf1d88883256c0d2731600d604af22d27d8ee7f Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 19 Feb 2021 16:21:22 -0500 Subject: Remove penultimate genome slot I need the last "good" genome, not the second to last one, so instead thread the original genome (before any mutations) through the required states so it can be reverted to if a lethal change is made. --- genome-list.mjs | 8 -------- index.html | 2 +- rules.mjs | 30 ++++++++++++++++++------------ 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/genome-list.mjs b/genome-list.mjs index c057d34..8969a8c 100644 --- a/genome-list.mjs +++ b/genome-list.mjs @@ -18,14 +18,6 @@ class GenomeList { return undefined } } - - get penultimate() { - if (this.genomes.length > 1) { - return this.genomes[this.genomes.length - 2] - } else { - return undefined - } - } } export default GenomeList diff --git a/index.html b/index.html index 66a62fa..3b41efc 100644 --- a/index.html +++ b/index.html @@ -74,7 +74,7 @@