Class MMShuffle

All Implemented Interfaces:
Serializable

public class MMShuffle extends Roll
Subclass of the roll tracker for Pool36Random "entropy" sources
Since:
July 21, 2004, 7:49 AM
See Also:
  • Constructor Details

    • MMShuffle

      public MMShuffle(int first, int second)
      Create a new "roll" for this shuffle.
      Parameters:
      first - - the first int "roll"
      second - - the second int "roll"
  • Method Details

    • setDeal

      public void setDeal(int dealt)
      Record when this "roll" is dealt.
      Parameters:
      dealt - - the int order of this "roll" in its shuffle
    • getIntValue

      public int getIntValue()
      Get the value of the roll. This is the total of each of the rolls of each virtual die.
      Specified by:
      getIntValue in class Roll
      Returns:
      the int value of the roll.
    • getIntValues

      public int[] getIntValues()
      Get the individual value of each virtual die.
      Specified by:
      getIntValues in class Roll
      Returns:
      the int values of the roll.
    • toString

      public String toString()
      Get a String containing the roll for each of the virtual dice.
      Specified by:
      toString in class Roll
      Returns:
      the String value of the roll.
    • getReport

      public String getReport()
      Get a String report that can be parsed to analyse the roll.
      Specified by:
      getReport in class Roll
      Returns:
      the String details of the roll.
    • main

      public static void main(String[] args)
      Test harness for this class.