Package Files
Class Dice
java.lang.Object
Files.Dice
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Dice
public Dice()
-
-
Method Details
-
setSides
Constructs dice object with specific number of sides- Parameters:
sides
- number of sides for the dice object
-
rollDice
Method to roll the dice with the specific number of sides- Returns:
- Integer result of the dice roll
-