Beispiel #1
0
        public void Machine_turn_machine_is_winner_depth_0___10()
        {
            var sut = new AlphaBetaPruningEngine();

            int actual = sut.GetScoreForWinner(Winner.Machine, true, 0);

            Assert.AreEqual(10, actual);
        }
Beispiel #2
0
        public void User_turn_user_is_winner_depth_2___8()
        {
            var sut = new AlphaBetaPruningEngine();

            int actual = sut.GetScoreForWinner(Winner.User, false, 2);

            Assert.AreEqual(8, actual);
        }