Exemple #1
0
        private void Player_OnInput(object sender, double[] inputs)
        {
            if (!IsActive)
            {
                return;
            }

            Vector <double> .Build.DenseOfArray(inputs);

            Player.ApplyOutput(FeedForwardNN.FeedForward(Brain, Vector <double> .Build.DenseOfArray(inputs)).AsArray());
            CalculateFitness();
            //Debug.Log(fitness);
        }