Exemplo n.º 1
0
        public NeuralNetAiGamePlayer CreateNeuralNetAiGamePlayer()
        {
            var net = Net.CreateNet();
            var neuralNetAiGamePlayer = new NeuralNetAiGamePlayer(net, Generation);

            return(neuralNetAiGamePlayer);
        }
Exemplo n.º 2
0
 public void RebuildPlayers(IEnumerable <Net> nets)
 {
     NetPlayerLookup = new Dictionary <Net, Contestant>();
     foreach (var net in nets)
     {
         var gamePlayer = new NeuralNetAiGamePlayer(net, 0);
         NetPlayerLookup.Add(net, new Contestant(gamePlayer));
     }
 }