Created
May 22, 2016 05:49
-
-
Save kbk0125/9d227c63bccfc423ea6fdd9036d49b84 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
var amount= 1000; | |
getCasinoTokens(amount, function(tokens, err){ | |
if (err) complainToManager(err) | |
playBlackjack(tokens*0.3, function(moreTokens, err){ | |
if (err) complainToManager(err) | |
playRoulette(moreTokens*0.05, function(evenMoreTokens, err) { | |
if (err) complainToManager(err) | |
playPoker(evenMoreTokens*0.5, function(finalTokens, err){ | |
if (err) complainToManager(err) | |
return finalTokens; | |
}) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment