|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectGuessModel
public class GuessModel
GuessModel provides a 'deck' of 16 numbers underlying the guessing game. The deck contains two instances each of numbers (0-7) which are randomized. Each element of the deck represents one of the tiles in the 4x4 game board, The deck can be re-shuffled by calling the instance method shuffleDeck()
System| Field Summary | |
|---|---|
private java.util.Random |
generator
|
protected static int |
NUM_TILES
|
protected int[] |
theDeck
|
| Constructor Summary | |
|---|---|
GuessModel()
|
|
| Method Summary | |
|---|---|
void |
shuffleDeck()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int NUM_TILES
protected int[] theDeck
private java.util.Random generator
| Constructor Detail |
|---|
public GuessModel()
| Method Detail |
|---|
public void shuffleDeck()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||