Skip to content

Instantly share code, notes, and snippets.

@ouranos
Created December 10, 2010 03:37
Show Gist options
  • Save ouranos/735726 to your computer and use it in GitHub Desktop.
Save ouranos/735726 to your computer and use it in GitHub Desktop.
Engine Yard Lucky 13 Contest
require 'open-uri'
require 'json'
def payout(bet)
JSON.parse(open('http://roulette.engineyard.com/').read)['winning_number'] == '13' ? 35*bet : 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment