Skip to content

Instantly share code, notes, and snippets.

@Voker57
Created March 3, 2015 20:00
Show Gist options
  • Save Voker57/6344b7b80c0cdd2fb773 to your computer and use it in GitHub Desktop.
Save Voker57/6344b7b80c0cdd2fb773 to your computer and use it in GitHub Desktop.
hoster = rand((ARGV[0] || 2).to_i)
alllist = "Spartan Federation
Gaia's Stepdaughters
University of Planet
Peacekeeping Forces
Human Hive
Lord's Believers
Morgan Industries
Cult of Planet
Cybernetic Consciousness
Data Angels
Free Drones
Nautilus Pirates
Manifold Usurpers
Manifold Caretakers".split("\n")
faclist = alllist.shuffle[0..6]
while (faclist.include? "Manifold Usurpers") ^ (faclist.include? "Manifold Caretakers")
faclist = alllist.shuffle[0..6]
end
puts "Player #{hoster} is hosting"
puts
puts faclist.join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment