class MyRandomProblem extends Problem { constructor(x, y) { super(x, y); } tick(platform) { // Do something this.ticks++; } onCompletion(platform) { } } module.exports = MyRandomProblem;