UNPKG

@andreabiagini5/applicazioni-e-servizi-web-project

Version:
20 lines 693 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PileFactory = void 0; class PileFactory { } exports.PileFactory = PileFactory; /** * Returns a pile assigned to the give owner, with the given number of grains. * @param owner the owner of the pile * @param numberOfGrains the number of grains contained in the pile * @returns a pile assigned to the give owner, with the given number of grains */ PileFactory.create = (owner, numberOfGrains) => new PileImpl(owner, numberOfGrains); class PileImpl { constructor(owner, numberOfGrains) { this.owner = owner; this.numberOfGrains = numberOfGrains; } } //# sourceMappingURL=Pile.js.map