export const SearchTree = ({ gameState, searchDepth = 5 }) => { const shouldBuildPossibleNodes = currentDepth => R.gt(R.subtract(searchDepth, currentDepth), 0); return Node({ gameState, shouldBuildPossibleNodes, currentPlayer: R.call(gameState.getCurrentPlayer) }); };
const iOrR = curry((iFn, rFn, target) => call(ifElse( isImmutable, iFn, rFn ), target));