Skip to content

A simulated dice program which allows for the creation of abstract dices, multiple rolls for each die, and displays relevant information as well as a histogram.

Notifications You must be signed in to change notification settings

JasmineMontrichard/DiceModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dice Model

Background

This assignment required me to create a dice model by implementing the Model-View-Controller (MVC) software design pattern, integrating user input, as well as displaying a histogram for a significant amount of dice rolls for each dice (as specified by the user) and relevant information regarding each simulated dice and the simulated collection of all dices. Additionally, error-checking for input values is applied.

The user is asked to input the number of dice and the number of sides per dice, and each of these dices are added to a DiceCollection. Then, the user can choose to roll each dice one time, or 100,000 times which would display a histogram comparing the total of all the numbers rolled per die, or to quit the program.

Created on 12/22/23

About

A simulated dice program which allows for the creation of abstract dices, multiple rolls for each die, and displays relevant information as well as a histogram.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages