UNPKG

hathora-et-labora-game

Version:

Game logic reducer for Uwe Rosenberg's Ora et Labora

15 lines 448 B
import { match } from 'ts-pattern'; import { always, curry } from 'ramda'; import { getCost, withActivePlayer } from '../board/player'; export const houseboat = () => { return withActivePlayer(getCost({ wood: 1, malt: 1, penny: 1, peat: 1, })); }; export const complete = curry((partial, _state) => match(partial) .with([], always([''])) .otherwise(always([]))); //# sourceMappingURL=houseboat.js.map