hathora-et-labora-game
Version:
Game logic reducer for Uwe Rosenberg's Ora et Labora
10 lines • 593 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 cottage = () => pipe(withActivePlayer(getCost({ malt: 1 })), disableFurtherUsage(BuildingEnum.Cottage), allowFreeUsageToNeighborsOf(BuildingEnum.Cottage));
export const complete = curry((partial, _state) => match(partial)
.with([], always(['']))
.otherwise(always([])));
//# sourceMappingURL=cottage.js.map