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.

16 lines (15 loc) 1.39 kB
import { Lens } from 'ramda'; import { Clergy, Cost, GameCommandConfigParams, GameStatePlaying, PlayerColor, StateReducer, Tableau, TableauReducer } from '../types'; export declare const activeLens: (state?: GameStatePlaying) => Lens<GameStatePlaying | undefined, Tableau>; export declare const withActivePlayer: (func: (player: Tableau) => Tableau | undefined) => StateReducer; export declare const indexLens: (playerIndex: number) => Lens<GameStatePlaying | undefined, Tableau>; export declare const withPlayerIndex: (playerIndex: number) => (func: (player: Tableau) => Tableau | undefined) => StateReducer; export declare const withEachPlayer: (func: (player: Tableau) => Tableau | undefined) => StateReducer; export declare const clergyForColor: (config?: GameCommandConfigParams) => (color: PlayerColor) => Clergy[]; export declare const isPrior: (clergy: Clergy | undefined) => boolean; export declare const isLayBrother: (clergy: Clergy | undefined) => boolean; export declare const priors: (state: GameStatePlaying | undefined) => Clergy[]; export declare const payCost: (cost: Cost) => TableauReducer; export declare const getCost: (cost: Cost) => TableauReducer; export declare const subtractCoins: (amount: number) => (player: Tableau | undefined) => Tableau | undefined; export declare const getWonder: (amount?: number) => (player: Tableau | undefined) => Tableau | undefined;