/****************************** * Adding The players *******************************/ public static void addPlayers(List <Player> playerList, List <foto> pics, int realPlayers, int robots, List <City> citylist, List <Railroad> network) { List <Player> botPlayer = new List <Player>(); IntelligentPlayer Emiel = new IntelligentPlayer("Emile", System.Drawing.Color.Blue, citylist, network); botPlayer.Add(Emiel); IntelligentPlayer Dirk = new IntelligentPlayer("Dirkske", System.Drawing.Color.Red, citylist, network); botPlayer.Add(Dirk); IntelligentPlayer Luka = new IntelligentPlayer("Luka", System.Drawing.Color.Yellow, citylist, network); botPlayer.Add(Luka); IntelligentPlayer Jeff = new IntelligentPlayer("Jeff", System.Drawing.Color.Black, citylist, network); botPlayer.Add(Jeff); for (int i = 0; i < robots; i++) { CardMethods <Player> .swapCardFromDeck(botPlayer, playerList); } /****************************** * Ask user here player data *******************************/ for (int i = 0; i < realPlayers; i++) { PlayerData data = new PlayerData(); PlayerDialog form = new PlayerDialog(data, pics); while (data.getName() == null || data.getColor() == null) { form.ShowDialog(); } Player a = new Player(data.getName(), data.getColor()); playerList.Add(a); } Program.logboek.WriteLine(string.Format("{0} players added", playerList.Count)); }