Example #1
0
        private List <GameRunningCube.Source.GamePlay.Player> GeneratePopulation()
        {
            List <Player> populationPlayer = new List <Player>();

            for (int i = 0; i < Settings.AmountOfPopulation; i++)
            {
                var player = new Player();
                player.AiMoves = NumberGenerator.GenerateMovesForPlayer();
                populationPlayer.Add(player);
            }
            return(populationPlayer);
        }