예제 #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);
            }
        }