
/**
 * Class that models a pair of 6-sided dice.
 * 
 * @author Dave Reed
 * @version 2/27/08
 */
public class PairOfDice {
	private Die die1;
	private Die die2;

	/**
	 * Constructs a PairOfDice object.
	 */
	public PairOfDice() {
		this.die1 = new Die(6);
		this.die2 = new Die(6);
	}

	/**
	 * Conducts a roll of the dice pair.
	 *   @return a String representing the rolled dice, e.g., "3-4"
	 */
	public String roll() {
		return this.die1.roll() + "-" + this.die2.roll();
	}
}
