public class Dice
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
die1  | 
protected int | 
die2  | 
static int | 
MAX_VALUE  | 
static int | 
MIN_VALUE  | 
static int | 
NUM_DICE  | 
| Modifier and Type | Method and Description | 
|---|---|
static Dice | 
getDice(int i,
       int j)
Method which returns a specific dice roll. 
 | 
int | 
getDie1()
Returns the value of the first die 
 | 
int | 
getDie2()
Returns the value of the second die 
 | 
boolean | 
isDoubles()
Returns whether or not the dice are doubles 
 | 
void | 
print(java.io.PrintStream out)
Prints out a gnubg-style text board. 
 | 
static Dice | 
roll()
Method which rolls the dice 
 | 
public static int MIN_VALUE
public static int MAX_VALUE
public static int NUM_DICE
protected int die1
protected int die2
public static Dice getDice(int i, int j)
die1 - The first diedie2 - The second diepublic static Dice roll()
public int getDie1()
public int getDie2()
public boolean isDoubles()
public void print(java.io.PrintStream out)
out - The output stream to write the dice to