UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

7 lines 303 B
/** * Type guard for {@link UnpredictableMoves} interface * @param rules Rules of the game * @returns true is rules implements {@link UnpredictableMoves} */ export const hasUnpredictableMoves = (rules) => typeof rules.isUnpredictableMove === 'function'; //# sourceMappingURL=UnpredictableMove.js.map