/** RollDice: first draft of the Die class tester
 * Author: CPSC 111, Section 206, Spring 05-06
 * Date: Jan 26 2006
 *
 * This code tests the Die class by creating two dice, rolling them,
 * and printing their sum.
 */
public class RollDice
{
    public static void main ( String [] args )
    {
        Die die = new Die();
        die.setSides(6);
        int answer1 = die.roll();
        System.out.println("answer is: " + answer1);

        Die kermit = new Die();
        kermit.setSides(8);
        int answer2 = kermit.roll();
        System.out.println("answer is: " + answer2);

        int sum = answer1 + answer2;
        System.out.println("sum is: " + sum);
        System.out.println("number of sides is: " + kermit.getSides());
    }

}
