UNPKG

hathora-et-labora-game

Version:

Game logic reducer for Uwe Rosenberg's Ora et Labora

8 lines 391 B
import { always, curry } from 'ramda'; import { match } from 'ts-pattern'; import { setFrameToAllowFreeUsage } from '../board/frame'; export const hospice = () => (state) => state && setFrameToAllowFreeUsage(state.buildings)(state); export const complete = curry((partial, _state) => match(partial) .with([], always([''])) .otherwise(always([]))); //# sourceMappingURL=hospice.js.map