Class GuessModel

java.lang.Object
  extended by GuessModel

public class GuessModel
extends java.lang.Object

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()

See Also:
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

NUM_TILES

protected static final int NUM_TILES
See Also:
Constant Field Values

theDeck

protected int[] theDeck

generator

private java.util.Random generator
Constructor Detail

GuessModel

public GuessModel()
Method Detail

shuffleDeck

public void shuffleDeck()