Пример #1
0
        public void TesseraTest()
        {
            PenteController pc = new PenteController(9, 9, "Boris", "Kyle");

            pc.isTesting = true;

            for (int row = 0; row < 9; row++)
            {
                for (int col = 0; col < 9; col++)
                {
                    PenteCellectaCanvas canvas = new PenteCellectaCanvas(row, col, pc, 10, 10);
                }
            }
            pc.PlaceFirstPiece();      //black
            pc.AttemptPlacement(0, 7); //white
            pc.AttemptPlacement(0, 1); //black
            pc.AttemptPlacement(1, 7); //white
            pc.AttemptPlacement(0, 2); //black
            pc.AttemptPlacement(2, 7); //white
            pc.AttemptPlacement(0, 3); //black
            pc.AttemptPlacement(3, 7); //white

            pc.CheckWin(0, 7, true);
            pc.Yell(true, 4);
            Assert.AreEqual(true, pc.isTessera, $"Tria Yell Does Not Work its {pc.isTessera} ");
        }