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.
11 lines • 357 B
JavaScript
export const tileWithoutClergy = (denyList) => (landStack) => {
if (landStack.length === 0)
return landStack;
const [terrain, building, clergy] = landStack;
if (clergy === undefined)
return landStack;
if (denyList.includes(clergy))
return [terrain, building];
return landStack;
};
//# sourceMappingURL=tile.js.map