@andreabiagini5/applicazioni-e-servizi-web-project
Version:
Project for Applicazioni e Servizi Web.
20 lines • 693 B
JavaScript
;
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