|
@@ -2,9 +2,13 @@ import java.util.HashMap;
|
2
|
2
|
|
3
|
3
|
public class Bins {
|
4
|
4
|
|
5
|
|
- protected HashMap<Integer, Integer> numOfTimesWeveRolledEachNUm;
|
|
5
|
+ protected HashMap<Integer, Integer> numOfTimesWeveRolledEachNUm = new HashMap<Integer, Integer>();
|
6
|
6
|
|
7
|
|
- public Bins(Integer minDiceRange, Integer maxDiceRange)
|
|
7
|
+ public Bins(Integer smallestPossible, Integer largestPossible){
|
|
8
|
+ for (Integer key = smallestPossible; key <= largestPossible; key++){
|
|
9
|
+ numOfTimesWeveRolledEachNUm.put(key, 0);
|
|
10
|
+ }
|
|
11
|
+ }
|
8
|
12
|
|
9
|
13
|
public Bins(int start, int end) {
|
10
|
14
|
|