summaryrefslogtreecommitdiffstats
path: root/main.mjs
blob: aed3c1ae892d93f933ffcf8c4bef1af2e718c896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Rules from './rules.mjs'

function init() {
    const genomeList = document.querySelector('#genome-history')
    const die = document.querySelector('#die')
    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, nucleotideSelector, cloneButton, remainingIterations, printButton, errors)
}

init()