Class Die

java.lang.Object
  extended by Die

public class Die
extends java.lang.Object

class that simulates a standard 6-sided die


Constructor Summary
Die()
          Constructs a new Die with an initial face value of 1.
 
Method Summary
 int roll()
          simulate a roll of this die and return its new face value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Die

public Die()
Constructs a new Die with an initial face value of 1.

Method Detail

roll

public int roll()
simulate a roll of this die and return its new face value