summaryrefslogtreecommitdiffstats
path: root/main.mjs
blob: 1af1c563ee1c293732f5a973d2821b0b504feefd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 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, cloneButton, remainingIterations, printButton, errors)
}

init()