Skip to content

Instantly share code, notes, and snippets.

@adriand
Created December 10, 2010 04:35
Show Gist options
  • Save adriand/735791 to your computer and use it in GitHub Desktop.
Save adriand/735791 to your computer and use it in GitHub Desktop.
require 'open-uri'
def pay(bet)
URI.parse('http://roulette.engineyard.com').read =~ /13/ ? bet * 35 : 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment