コード例 #1
0
        private void PrepareDemoScene()
        {
            NeuralNetwork demoAgentNetwork = _agents
                                             .OrderByDescending(agent => agent.FitnessAccumulator.Fitness)
                                             .First()
                                             .Network
                                             .Clone();

            try
            {
                Scenes.Data.Add(DataTags.DemoAgentNetwork, demoAgentNetwork);
            }
            catch (ArgumentException) { }

            Scenes.Load(SceneId.DemoScene);
        }