Created
December 10, 2010 09:49
-
-
Save buffpojken/736035 to your computer and use it in GitHub Desktop.
Roulette.
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
%w(rubygems json rest-client).map{|a|require a};puts"Amount betted:";a = gets;JSON.parse(RestClient.get("http://roulette.engineyard.com/")).each_pair{|k,v|v.eql?("13") ? (puts"You've won #{a.to_i*35}"):(puts "No winnings!")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment