-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSudokuPuzzleType.java
49 lines (39 loc) · 1.18 KB
/
SudokuPuzzleType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package sudoku;
public enum SudokuPuzzleType {
SIXBYSIX(6,6,3,2,new String[] {"1","2","3","4","5","6"},"6 By 6 Game"),
NINEBYNINE(9,9,3,3,new String[] {"1","2","3","4","5","6","7","8","9"},"9 By 9 Game"),
TWELVEBYTWELVE(12,12,4,3,new String[] {"1","2","3","4","5","6","7","8","9","A","B","C"},"12 By 12 Game"),
SIXTEENBYSIXTEEN(16,16,4,4,new String[] {"1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G"},"16 By 16 Game");
private final int rows;
private final int columns;
private final int boxWidth;
private final int boxHeight;
private final String [] validValues;
private final String desc;
private SudokuPuzzleType(int rows,int columns,int boxWidth,int boxHeight,String [] validValues,String desc) {
this.rows = rows;
this.columns = columns;
this.boxWidth = boxWidth;
this.boxHeight = boxHeight;
this.validValues = validValues;
this.desc = desc;
}
public int getRows() {
return rows;
}
public int getColumns() {
return columns;
}
public int getBoxWidth() {
return boxWidth;
}
public int getBoxHeight() {
return boxHeight;
}
public String [] getValidValues() {
return validValues;
}
public String toString() {
return desc;
}
}