-
-
Save alion02/d8f89857d82d0f9e7d68df8d808fad63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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