UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

2 lines (1 loc) 114 B
export type Robot<Game, Move = string, PlayerId = number> = (state: Game, playerId: PlayerId) => Promise<Move[]>;