UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

15 lines 486 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultGameSetup = void 0; var DefaultGameSetup = (function () { function DefaultGameSetup(Rules) { this.Rules = Rules; } DefaultGameSetup.prototype.setup = function (options) { var rules = new this.Rules(options); return rules.game; }; return DefaultGameSetup; }()); exports.DefaultGameSetup = DefaultGameSetup; //# sourceMappingURL=DefaultGameSetup.js.map