Class: FootballManager::Game
- Inherits:
-
Object
- Object
- FootballManager::Game
- Defined in:
- lib/football-manager/game.rb
Class Method Summary collapse
Class Method Details
.pick_teams(player_data_reference) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/football-manager/game.rb', line 3 def self.pick_teams(player_data_reference) player_data = FootballManager::IOHelper.fetch_player_data(player_data_reference) players = FootballManager::PlayersCreator.create_players(player_data) teams = FootballManager::TeamPicker.calculate_fair_teams(players) FootballManager::TeamSheetCreator.create_team_sheet(teams) end |