You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
414 B
TypeScript

import Game from './Game'
import Parser from './Parser'
import Renderer from './Renderer'
import RulesEngine from './RulesEngine'
import definitions from './definitions'
export const game = new Game()
export const rules = new RulesEngine(game)
export const parser = new Parser(game, rules)
export const renderer = new Renderer(parser, game, rules)
for (const func of definitions) {
func(parser, rules, game)
}