blob: 613ededce794ff6d66577b4ebd18678a67fce6a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import Rules from './rules.mjs'
function init() {
const genomeList = document.querySelector('#genome-history')
const die = document.querySelector('#die')
const aminoAcidSelector = document.querySelector('#amino-acid-selector')
const nucleotideSelector = document.querySelector('#nucleotide-selector')
const lethalitySelector = document.querySelector('#lethality-selector')
const instructions = document.querySelector('#instructions')
const cloneButton = document.querySelector('#clone')
const remainingIterations = document.querySelector('#remaining-iterations')
const printButton = document.querySelector('#print')
const errors = document.querySelector('#errors')
const rules = new Rules(die, instructions, genomeList, aminoAcidSelector, nucleotideSelector, lethalitySelector, cloneButton, remainingIterations, printButton, errors)
}
init()
|