hathora-et-labora-game
Version:
Game logic reducer for Uwe Rosenberg's Ora et Labora
4 lines • 330 B
JavaScript
import { join, map, pipe, reduce, reject, split } from 'ramda';
import { initialState, reducer } from '.';
export const spiel = pipe(join(''), split('\n'), map((s) => s.trim()), reject((s) => s === ''), map((s) => s.split(' ')), reduce((state, command) => reducer(state, command), initialState));
//# sourceMappingURL=spiel.js.map