Esempio n. 1
0
    // Called to figure out next move of AI
    public void UpdateAI()
    {
        // Update Input
        float[] InputArray = TetrisBoard.GetData();

        Tetris.Move Choice = Tetris.Move.WAIT;

        // Update Epoch
        int BestOutput = _EpochManager.GetCurrentEpochBestOutput(InputArray);

        if (BestOutput != -1)
        {
            Choice = (Tetris.Move)BestOutput;
        }

        // Set Winning Move
        _AI_Move = Choice;
    }