Skip to content

Instantly share code, notes, and snippets.

@thisisjofrank
Created April 20, 2020 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisisjofrank/81dc5c0c542feaed47e922e0fb218a0a to your computer and use it in GitHub Desktop.
Save thisisjofrank/81dc5c0c542feaed47e922e0fb218a0a to your computer and use it in GitHub Desktop.
An example of a Problem class
class MyRandomProblem extends Problem {
constructor(x, y) {
super(x, y);
}
tick(platform) {
// Do something
this.ticks++;
}
onCompletion(platform) {
}
}
module.exports = MyRandomProblem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment