Skip to content

Instantly share code, notes, and snippets.

@albertbellonch
Last active February 26, 2016 20:17
Show Gist options
  • Save albertbellonch/50bc3115f86e3e055f94 to your computer and use it in GitHub Desktop.
Save albertbellonch/50bc3115f86e3e055f94 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
level1 = %w{ Roger Jorge Ferran Bernat }.shuffle
level2 = %w{ Victor Albert Gorka Alex }.shuffle
level3 = %w{ Dario Jon Marc Cesar }.shuffle
level4 = %w{ Txell Eliza Pablo Daniel }.shuffle
4.times do |group_i|
group_players = [
level1[group_i],
level2[group_i],
level3[group_i],
level4[group_i]
]
puts "Group #{group_i+1}: #{group_players.join(', ')}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment