public void SetCellAtCoordinates(int row, int column, LetterAndArrowCell cell) { _grid[string.Concat(row, column)] = cell; if (!RowsVisited.Contains(row)) { RowsVisited.Add(row); } }
public override bool Equals(object obj) { LetterAndArrowCell cell = obj as LetterAndArrowCell; if (cell is null) { return(false); } return(Equals(cell)); }
protected bool Equals(LetterAndArrowCell other) { return(Letter == other.Letter && Number == other.Number && Direction == other.Direction); }