public void TestPartitaConSquadreConModuloAdatto() { RandomFiller.RandomFiller rnd = new RandomFiller.RandomFiller(); Team a = new Team(rnd.getTeamName()); GameUtils.wait(); Team b = new Team(rnd.getTeamName()); List<Coach> coachl = GameUtils.getRandomCoachList(2); a.setCoach(coachl.ElementAt(0)); b.setCoach(coachl.ElementAt(1)); a.addPlayers(GameUtils.getRandomPlayersForModule(coachl.ElementAt(0).FavouriteModule)); b.addPlayers(GameUtils.getRandomPlayersForModule(coachl.ElementAt(1).FavouriteModule)); Match m = new Match(a, b); Console.WriteLine(a.ToStringFull()); Console.WriteLine(b.ToStringFull()); Console.WriteLine("\n*********\n" + a.Avg + " : " + b.Avg); Console.WriteLine(a.TeamName + " - " + b.TeamName + " " + m.Score().ToString()); }
public void TestRandomTeamName() { RandomFiller.RandomFiller rnd = new RandomFiller.RandomFiller(); for (int i = 0; i < 20; i++) { Console.WriteLine(rnd.getTeamName()); GameUtils.wait(20); } }