Skip to content

Instantly share code, notes, and snippets.

@bascht
Created June 20, 2012 09:50
Show Gist options
  • Select an option

  • Save bascht/2959123 to your computer and use it in GitHub Desktop.

Select an option

Save bascht/2959123 to your computer and use it in GitHub Desktop.
Tippspiel. Und so.
#!/bin/env ruby
MATCHES = [
["Tschechien", "Portugal"],
["Deutschland", "Griechenland"],
["Spanien", "Frankreich"],
["England", "Italien"]
]
MATCHES.each do |teams|
result = 2.times.collect{ Random.rand(5) }.join ":"
puts "#{teams.join ' gegen '}: #{result}\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment