Пример #1
0
        public void LastRowForPlayerY()
        {
            HexBoard hexBoard = new HexBoard(BoardSize);

            Cell[] row = hexBoard.Row(false, false);

            foreach (Cell cell in row)
            {
                Assert.AreEqual(BoardSize - 1, cell.X);
            }
        }
Пример #2
0
        public void RowsTest()
        {
            HexBoard hexBoard = new HexBoard(BoardSize);

            Cell[] row = hexBoard.Row(true, true);
            DoTestRow(row, hexBoard.Size);

            row = hexBoard.Row(true, false);
            DoTestRow(row, hexBoard.Size);

            row = hexBoard.Row(false, true);
            DoTestRow(row, hexBoard.Size);

            row = hexBoard.Row(false, false);
            DoTestRow(row, hexBoard.Size);
        }
Пример #3
0
        public void FirstRowForPlayerX()
        {
            HexBoard hexBoard = new HexBoard(BoardSize);

            Cell[] row = hexBoard.Row(true, true);

            foreach (Cell cell in row)
            {
                Assert.AreEqual(0, cell.Y);
            }
        }