UNPKG

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.

9 lines 403 B
export const checkFinalPhase = (next) => (state) => { if (state === undefined) return undefined; const buildings = state.config.length === 'long' ? 3 : 1; if (state.buildings.length > buildings) return state; return Object.assign(Object.assign({}, state), { frame: Object.assign(Object.assign({}, state.frame), { next }) }); }; //# sourceMappingURL=checkFinalPhase.js.map