UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

8 lines (7 loc) 271 B
import { Rules } from './Rules'; export interface RulesCreator<Game = any, Move = any, Player = number, Options = any> { new (state: Game, client?: { player?: Player; }): Rules<Game, Move, Player>; new (options: Options): Rules<Game, Move, Player>; }