Example #1
0
 public BoardCell(BoardCellCol col, BoardCellRow row, int indexX, int indexY)
 {
     Col    = col;
     Row    = row;
     IndexX = indexX;
     IndexY = indexY;
     Status = BoardCellStatus.Empty;
 }
Example #2
0
        private void CheckAvailableCell(BoardCellCol col, BoardCellRow row)
        {
            var cell = BoardModel.GetCell(col, row);

            Assert.IsTrue(cell.Status == BoardCellStatus.AvailableForMove);
        }
Example #3
0
 public IBoardCell GetCell(BoardCellCol col, BoardCellRow row)
 {
     return(_cellsList.FirstOrDefault(cell => cell.Equals(col, row)));
 }