UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

14 lines 444 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasRandomMove = void 0; /** * Type guard for rules with Random moves * @param rules The game's rules * @return true if the rules implements {@link RandomMove} interface */ function hasRandomMove(rules) { var test = rules; return typeof test.randomize === 'function'; } exports.hasRandomMove = hasRandomMove; //# sourceMappingURL=random.util.js.map