Skip to content

Instantly share code, notes, and snippets.

View Digital-Learner's full-sized avatar

Digital Learner Digital-Learner

View GitHub Profile
set autoeval
set autolist
set autoreload
#!/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