Skip to content

BTBurton1/DiceDemoAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

// Candyland is a board game where you roll a dice to depict how many spaces you move on the board.
// You roll a dice and that amount dictates how much space you move. 

// Dice Characteristics: 
// Numbers can range from 1-6
// 6 faces.


// Dice Behavior:
// Random not always guaranteed to be a value
// Controls how far you go on the board
// Minimum moves 1
// Maximum moves 6

----------------------
|        Dice        |
----------------------
| - diceSides : int  |
| - topSide  : int   |
----------------------
| + TopSide   : int  |
| + DiceSides : int  |
----------------------
| + Dice()           |
| + Dice(numOfSides:int)  |
| + Roll() : void    |
----------------------

----------------------
|     DiceGame       |
----------------------
| + Main(args:string[]) : void |
| + ContainsNumber(rolls:int[], number:int): bool |
| + GetUniqueRolls(dice:Dice) : int[] |
----------------------
//Test Cases:
//Create a dice object using default constructor
//Create a dice object using with positive number of side
//Create a dice object using with non-positive number of side
//Check the topSide after rolling the dice, ensure it is within[1, dicesides]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages