jbilcke-hf's picture
jbilcke-hf HF Staff
added two new styles
2f0f4c5
raw
history blame
715 Bytes
import { GameType } from "./types"
import { game as pirates } from "./pirates"
import { game as city } from "./city"
import { game as dungeon } from "./dungeon"
import { game as doom } from "./doom"
import { game as vernian } from "./vernian"
import { game as enchanters } from "./enchanters"
import { game as flamenco } from "./flamenco"
import { game as pharaoh } from "./pharaoh"
import { game as tensor } from "./tensor"
import { game as nexus } from "./nexus"
export const games = { pirates, city, dungeon, doom, vernian, enchanters, flamenco, pharaoh, tensor, nexus}
export const defaultGame: GameType = "tensor"
export const getGame = (type?: GameType) => games[type || defaultGame] || games[defaultGame]