@gamepark/rules-api
Version:
API to implement the rules of a board game
14 lines • 486 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasSecretInformation = void 0;
/**
* Type guard for games with secret information
* @param rules Rules of the game
* @returns true if the game implements {@link SecretInformation}
*/
function hasSecretInformation(rules) {
var test = rules;
return typeof test.getPlayerView === 'function';
}
exports.hasSecretInformation = hasSecretInformation;
//# sourceMappingURL=SecretInformation.js.map