@gamepark/rules-api
Version:
API to implement the rules of a board game
13 lines • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasLocalMovePreview = void 0;
/**
* Type guard for {@link LocalMovePreview} interface
* @param rules The game's rules
* @return true if the rules implements {@link LocalMovePreview}
*/
function hasLocalMovePreview(rules) {
return typeof rules.previewMove === 'function';
}
exports.hasLocalMovePreview = hasLocalMovePreview;
//# sourceMappingURL=LocalMovePreview.js.map