Created
June 20, 2012 09:50
-
-
Save bascht/2959123 to your computer and use it in GitHub Desktop.
Tippspiel. Und so.
This file contains hidden or 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
| #!/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