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); } }
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); }
public void FirstRowForPlayerX() { HexBoard hexBoard = new HexBoard(BoardSize); Cell[] row = hexBoard.Row(true, true); foreach (Cell cell in row) { Assert.AreEqual(0, cell.Y); } }