Esempio n. 1
0
        private static List <Player> GetNewPlayers(int numberOfPlayers, Random rnd)
        {
            List <Player> leaguePlayers = new List <Player>();

            for (int i = 0; i < numberOfPlayers; i++)
            {
                leaguePlayers.Add(
                    new Player(
                        AiType.Create <NewMutableAI>(NewMutableParameters.RandomGens(rnd))));
            }
            return(leaguePlayers);
        }
Esempio n. 2
0
 private static Player GetMutantet(String[] args, Random rnd)
 {
     return(new Player(
                AiType.Create <NewMutableAI>(NewMutableParameters.Mutate(args, rnd))));
 }