Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Created February 8, 2011 18:50
Show Gist options
  • Save danielvlopes/816965 to your computer and use it in GitHub Desktop.
Save danielvlopes/816965 to your computer and use it in GitHub Desktop.
def s a
a.sort_by{rand}
end
def z s
s.tr('.,;[](){}','ailrtuens').split(" ")
end
t = s(z("I]á;,. F[.{ç. A;)m.{h. Po[](g.; B[.},; A[g){],{. I{g;.])[[. Uc[â{,. E}p.{h. Ho;.{d. S(íç. S(éc,. A(}][á;,. Méx,co U[(g(., G.{."))
z("O,].v.} d) f,{.; Q(.[].} d) f,{.; S)m,f,{.; F,{.;").map do |f|
puts "\n#{f}"
t = t.enum_slice(2).map do |i,j|
a,b = s(0..5)
puts "#{i} #{a} x #{b} #{j} - #{v = b > a ? j : i} #{' campeão' if f =~ /F/}"
v
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment