Skip to content

Instantly share code, notes, and snippets.

View jordanpoulton's full-sized avatar

Jordan Poulton jordanpoulton

View GitHub Profile
#!/usr/bin/env ruby
class Manager
def pick_a_team(squad)
team = Team.new
# get the best players for every position from the squad
# and add them to the team
# for every position (goalkeeper etc)
# get the best player(s) from the squad