Exemplo n.º 1
0
        public void CheckSecondSituationVerticallyTest()
        {
            Board     board = new Board();
            bool?     win;
            AlphaBeta alphaBeta = new AlphaBeta();
            int       result    = 0;

            board.PutToken(1);
            board.PutToken(1);
            board.PutToken(1);
            alphaBeta.CheckSecondSituationVertically(true, board, ref result);
            Assert.AreEqual(900000, result);


            board.PutToken(3);
            board.PutToken(3);
            board.PutToken(3);
            alphaBeta.CheckSecondSituationVertically(true, board, ref result);
            Assert.AreEqual(int.MaxValue, result);
        }