Spaces:
Runtime error
Runtime error
File size: 822 Bytes
6896326 008456e a438bb5 1be0bd5 2f0f4c5 b1ecc22 e66b0b0 6896326 e66b0b0 6896326 78a9e11 6896326 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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"
import { game as arizona } from "./arizona"
import { game as trulad } from "./trulad"
export const games = { arizona, pirates, city, dungeon, doom, vernian, enchanters, flamenco, pharaoh, tensor, nexus, trulad}
export const defaultGame: GameType = "enchanters"
export const getGame = (type?: GameType) => games[type || defaultGame] || games[defaultGame] |