UNPKG

jungle-board-service

Version:
29 lines (28 loc) 801 B
import * as gameLogic from './gameLogic'; export declare enum GameStatus { READY = "Ready", PLAYING = "Playing", PAUSE = "Pause", END = "End", TIE = "Tie" } declare type History = { moves: gameLogic.Board[]; }; export declare class Game { state: gameLogic.IState; playerTurn: string; moveCount: number; maxMove: number; gameStatus: GameStatus; isSinglePlay: boolean; history: History; constructor(); initBoard(): void; startGame(maxMove: number, isSinglePlay?: boolean): void; getAllMoves(board: gameLogic.Board): gameLogic.AllPossibleMoves; getRotatedBoard(): gameLogic.Board; move(deltaFrom: gameLogic.BoardDelta, deltaTo: gameLogic.BoardDelta, shouldRotateBoard?: boolean): boolean; computerMove(): void; } export {};