backgammon
Version:
a clean api for building a backgammon game
11 lines (10 loc) • 333 B
TypeScript
export declare type SingleDice = number;
export declare class Dices {
numbers: SingleDice[];
constructor(numbers: SingleDice[]);
isDouble: boolean;
static roll1Dice(): SingleDice;
static roll2Dices(): Dices;
static dicesAreDouble({ numbers }: Dices): boolean;
static getStarterDices(): Dices;
}