UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

10 lines 326 B
/** * Type guard for games with secret information * @param rules Rules of the game * @returns true if the game implements {@link SecretInformation} */ export function hasSecretInformation(rules) { const test = rules; return typeof test.getPlayerView === 'function'; } //# sourceMappingURL=SecretInformation.js.map