public class Boggle extends Object
Modifier and Type | Method and Description |
---|---|
List<BoggleDie> |
getDice()
Returns a list of the 16 dice in their current state.
|
static Boggle |
getInstance()
Returns the single
Boggle instance. |
void |
shuffleAndRoll()
Randomly shuffles the order of the dice and rolls all of dice.
|
public static Boggle getInstance()
Boggle
instance.Boggle
instancepublic List<BoggleDie> getDice()
shuffleAndRoll
.
Clients are unable to modify the game dice using the returned list; i.e., modifying the returned list has no effect on the dice held by the singleton.
public void shuffleAndRoll()