示例#1
0
        private static LineUp GetBestLineups(int playerCount)
        {
            IList <GameSnapshot> snapshots = CsvImporter.GetGameSnapShots(CSV_3_SNAPSHOTS);
            var lineup = LineUp.GetBestLineup(playerCount, snapshots);

            return(lineup);
        }
示例#2
0
        private LineUpViewModel GetBestLineup(int playerCount)
        {
            LineUp lineup = LineUp.GetBestLineup(playerCount, this._snapshots, LINEUPS_MIN_TIME);
            List <PlayerViewModel> players = this.PlayersData.Where(pvm => lineup.Contains(pvm.Number)).ToList();
            var vm = new LineUpViewModel(players, this._snapshots);

            return(vm);
        }