labyrinth-game-logic
TypeScript icon, indicating that this package has built-in type declarations

1.0.51 • Public • Published

labyrint-game-logic

example

const playerRed = new Player((readonlyGameState) => Promise); const playerGreen = new Player((readonlyGameState) => Promise); const playerYellow = new Player((readonlyGameState) => Promise);

const randomBoard = Game.generateRandomBoard();

const game = new Game({ playerGreen, playerRed, playerYellow, board: randomBoard });

game.addEventListener('gameended', (winner) => {}) game.addEventListener('playermoved', (move) => {}) game.addEventListener('treasurefound', (player, treasure) => {})

game.start()

/labyrinth-game-logic/

    Package Sidebar

    Install

    npm i labyrinth-game-logic

    Weekly Downloads

    6

    Version

    1.0.51

    License

    ISC

    Unpacked Size

    804 kB

    Total Files

    71

    Last publish

    Collaborators

    • timolehnertz