UNPKG

pokie

Version:

A server-side video slot game logic framework for JavaScript and TypeScript.

18 lines (17 loc) 645 B
import { GameSessionConfigRepresenting, GameSessionHandling, WinAmountDetermining } from "pokie"; export declare class GameSession implements GameSessionHandling { private readonly config; private readonly winCalculator; private bet; private credits; constructor(config?: GameSessionConfigRepresenting, winAmountCalculator?: WinAmountDetermining); getCreditsAmount(): number; setCreditsAmount(creditsAmount: number): void; getWinAmount(): number; getAvailableBets(): number[]; getBet(): number; setBet(bet: number): void; canPlayNextGame(): boolean; play(): void; private getInitialBet; }