Skip to content

Instantly share code, notes, and snippets.

@kanzure
Created February 26, 2013 01:22
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 kanzure/5034972 to your computer and use it in GitHub Desktop.
Save kanzure/5034972 to your computer and use it in GitHub Desktop.
vba-clojure bug?
// let the player control the game until he decides he hates it. This is particularly useful for playing from the repl.
void stepUntilCapture() {
while (currentButtons[0] != 2048) {
/* if (currentButtons[0] != 0) {
printf("currentButtons[o] is %d\n", currentButtons[0]);
} */
step();
}
// reset the buttons so that this function can be called in the future
currentButtons[0] = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment