UNPKG

hathora-et-labora-game

Version:

Game logic reducer for Uwe Rosenberg's Ora et Labora

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