Ejemplo n.º 1
0
    void OnGUI()
    {
        if (GUILayout.Button("Test"))
        {
            AlphaBetaProgram a = new AlphaBetaProgram();

            Context context = new Context();

            Simulate result = a.Think(0, -30000, 30000, context);
            Debug.Log(result.mEvaluate);
            Debug.Log((string)result.mMove);
        }
    }
Ejemplo n.º 2
0
 public GameLogic()
 {
     ai = new AlphaBetaProgram();
     ai.DEPTH = 1;
 }