Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

public class Minesweeper {

public Minesweeper(int row, int column) {
private final Integer rowCount;
private final Integer columnCount;

public Minesweeper(int rowCount, int columnCount) {
if (rowCount == 0 || columnCount == 0)
throw new ZeroSizedBoardException();

this.rowCount = rowCount;
this.columnCount = columnCount;
}

public void addRow(String row) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edu.pdx.cs410J.katas;

public class ZeroSizedBoardException extends Throwable {
public class ZeroSizedBoardException extends RuntimeException {
}