UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

3 lines (2 loc) 163 B
import { Rules } from '../Rules'; export declare function getGameView<Game, GameView, PlayerId>(rules: Rules<Game, any, PlayerId>, playerId?: PlayerId): GameView;