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.
10 lines • 622 B
JavaScript
import { always, curry, pipe } from 'ramda';
import { match } from 'ts-pattern';
import { allowFreeUsageToNeighborsOf, disableFurtherUsage } from '../board/frame';
import { getCost, withActivePlayer } from '../board/player';
import { BuildingEnum } from '../types';
export const cloisterGarden = () => pipe(withActivePlayer(getCost({ grape: 1 })), disableFurtherUsage(BuildingEnum.CloisterGarden), allowFreeUsageToNeighborsOf(BuildingEnum.CloisterGarden));
export const complete = curry((partial, _state) => match(partial)
.with([], always(['']))
.otherwise(always([])));
//# sourceMappingURL=cloisterGarden.js.map