UNPKG

hathora-et-labora-game

Version:

Plays Uwe Rosenberg's Ora et Labora for the Hathora engine. It reduces a list of moves into a board game state.

14 lines (12 loc) 301 B
import { GameCommandConfigParams, GameStateSetup } from '../types' export const config = (params: GameCommandConfigParams) => (state: GameStateSetup): GameStateSetup | undefined => { return { ...state, config: params, rondel: { pointingBefore: 0, }, } }