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.

12 lines 648 B
import { pipe } from 'ramda'; import { withRondel, standardSesourceGatheringCompletion, standardSesourceGatheringAction, updateToken, } from '../board/rondel'; import { ResourceEnum } from '../types'; import { shortGameBonusProduction } from '../board/resource'; export const cloisterOffice = (param = '') => { const withJoker = param.includes(ResourceEnum.Joker); return pipe( // standardSesourceGatheringAction('coin', withJoker), withRondel(updateToken('coin', withJoker)), shortGameBonusProduction({ penny: 1 })); }; export const complete = standardSesourceGatheringCompletion('coin'); //# sourceMappingURL=cloisterOffice.js.map