Example #1
0
    // Called when the node enters the scene tree for the first time.
    public override void _Ready()
    {
        netDisplayManager = new NetManager();
        AddChild(netDisplayManager);


        Regenerate();

        // tmp for debug
        //DebugGetFitness(genetic);
        //genetic.SelectionTest();
        //DebugGetFitness(genetic);
        //genetic.MutationTest();
        //DebugGetFitness(genetic);
        //genetic.BreedingTest();
        //DebugGetFitness(genetic);

        //
        genetic.RunFullCycle();

        DebugGetFitness(genetic);
        GD.Print(genetic.GetMostFittedData());
        //
        // tmp for debug
    }