Skip to content

Instantly share code, notes, and snippets.

@alion02 alion02/good.js Secret
Created Sep 20, 2018

Embed
What would you like to do?
// Setup
class SomeClass {
constructor(thing) {
this.thing = thing;
}
}
// Persistent storage
let turnsPassed = 0;
// Naming your own variables
return (me, opp) => {
++turnsPassed;
return opp.dead ? "m" : "n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.