iibykov / cotletico-manager

4 stars 0 forks source link

Generate the ideal squad (list of players) for the national team #9

Open iibykov opened 2 years ago

iibykov commented 2 years ago

Write a method that will take a team as parameter and generate the strongest squad from the existing set of players. The player and the position of the goalkeeper can be only one in the squad. The second parameter is scheme of players on the field, the default scheme is 4-4-2. Take into account injured players and players with red cards.