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 641 B
import { pipe } from 'ramda'; import { standardSesourceGatheringAction, standardSesourceGatheringCompletion, updateToken, withRondel, } from '../board/rondel'; import { ResourceEnum } from '../types'; import { shortGameBonusProduction } from '../board/resource'; export const grapevine = (param = '') => { const withJoker = param.includes(ResourceEnum.Joker); return pipe( // standardSesourceGatheringAction('grape', withJoker), withRondel(updateToken('grape', withJoker)), shortGameBonusProduction({ grape: 1 })); }; export const complete = standardSesourceGatheringCompletion('grape'); //# sourceMappingURL=grapevine.js.map