Skip to content

Instantly share code, notes, and snippets.

@buffpojken
Created December 10, 2010 09:49
Show Gist options
  • Save buffpojken/736035 to your computer and use it in GitHub Desktop.
Save buffpojken/736035 to your computer and use it in GitHub Desktop.
Roulette.
%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