hathora-et-labora-game
Version:
Game logic reducer for Uwe Rosenberg's Ora et Labora
13 lines (12 loc) • 1.18 kB
TypeScript
import { Rondel, GameCommandConfigParams, StateReducer, Cost, GameState, RondelToken } from '../types';
export declare const withRondel: (func: (rondel: Rondel) => Rondel | undefined) => StateReducer;
export declare const updateRondel: (token: RondelToken) => (rondel: Rondel | undefined) => Rondel | undefined;
export declare const introduceGrapeToken: StateReducer;
export declare const introduceStoneToken: StateReducer;
export declare const armValues: ({ length, players }: GameCommandConfigParams) => number[];
export declare const take: (armIndex: number, tokenIndex: number, config: GameCommandConfigParams) => number;
export declare const takePlayerJoker: (unitCost: Cost) => StateReducer;
export declare const advanceJokerOnRondel: StateReducer;
export declare const updateToken: (withToken: RondelToken, withJoker: boolean) => (rondel: Rondel) => Rondel | undefined;
export declare const standardSesourceGatheringAction: (usingToken: RondelToken, withJoker: boolean) => StateReducer;
export declare const standardSesourceGatheringCompletion: import("ts-toolbelt/out/Function/Curry").Curry<(usingToken: RondelToken, partial: string[], state: GameState) => string[]>;