Created
June 26, 2013 16:46
-
-
Save MattSurabian/5869124 to your computer and use it in GitHub Desktop.
FilibusterJS: The unfortunately life like filibuster simulator.
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
var issue = 'solve this mess'; | |
var secretArgueTime = Math.floor(Math.random()*86400000); // If only it didn't actually boil down to this | |
filibuster = setInterval(function(){ | |
console.log('We must '+issue); | |
},500); | |
opposition = setInterval(function(){ | |
console.log('Never!'); | |
},500); | |
setTimeout(function(){ | |
clearInterval(filibuster); | |
clearInterval(opposition); | |
switch(Math.round(Math.random()*1)){ | |
case 0: | |
console.log('We must '+issue); | |
console.log("Congratulations, your filibuster worked! We're going to finally "+issue); | |
break; | |
default: | |
console.log('Never!'); | |
console.log("Better luck next time! Your filibuster didn't work or has been invalidated"); | |
} | |
}, secretArgueTime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment