public Card(int rows) { _rows = rows; _card = new Square[rows, 5]; int currentStart = 1; for (int col = 0; col < 5; col++) { var randomise = Randomizer.Randomize(currentStart, currentStart + rows - 1); for (int row = 0; row < rows; row++) _card[row, col] = new Square(randomise[row]); currentStart = currentStart + rows; } }
public void AddSquare(Square square) { _squares.Add(square); }