Example #1
0
        public void TestLevel3()
        {
            var choosenState = MinMaxSearch.minMaxSearch(_state, 3);

            Console.WriteLine(choosenState);
            Assert.AreEqual(true, true);
        }
Example #2
0
        public void TestLevel2()
        {
            var choosenState = MinMaxSearch.minMaxSearch(_state, 2);

            Console.WriteLine(choosenState.ToString());
            Assert.AreEqual(true, true);
        }
 private void playMove(int[,] board, int moveID, bool maxMove)
 {
     postBoard = MinMaxSearch.cloneBoard(board);
     for (int y = 5; y >= 0; y--)
     {
         if (postBoard [y, moveID] == 0)
         {
             moveYID = y;
             postBoard [y, moveID] = maxMove ? 1 : -1;
             return;
         }
     }
 }