Skip to content

Instantly share code, notes, and snippets.

@NotBobTheBuilder
Created November 28, 2014 11:16
Show Gist options
  • Save NotBobTheBuilder/7cebd11ae5fbae479f85 to your computer and use it in GitHub Desktop.
Save NotBobTheBuilder/7cebd11ae5fbae479f85 to your computer and use it in GitHub Desktop.
var init, play, result, counter;
counter = 0;
init = result = function () {};
play = function () {
if (counter++ > 44) {
return 'dynamite';
} else {
return ['scissors', 'paper', 'rock'][Math.floor(Math.random() * 3)];
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment