Beispiel #1
0
        public void TestRightDiagWin()
        {
            var board = new CTTBoard();

            board.ApplyStep(CTTBoard.Player.PlayerO, 0, 2);
            board.ApplyStep(CTTBoard.Player.PlayerO, 1, 1);
            board.ApplyStep(CTTBoard.Player.PlayerO, 2, 0);
            Assert.IsTrue(board.CheckWin(), "should win");
        }
Beispiel #2
0
        public void TestLeftColumnWin5()
        {
            var board = new CTTBoard();

            board.ApplyStep(CTTBoard.Player.PlayerO, 0, 2);
            board.ApplyStep(CTTBoard.Player.PlayerO, 1, 2);
            board.ApplyStep(CTTBoard.Player.PlayerO, 2, 2);
            Assert.IsTrue(board.CheckWin(), "should win");
        }