Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload constructor for alternate-sized die #43

Closed
kbuffardi opened this issue Feb 5, 2023 · 1 comment
Closed

Overload constructor for alternate-sized die #43

kbuffardi opened this issue Feb 5, 2023 · 1 comment

Comments

@kbuffardi
Copy link
Contributor

Create an overloaded constructor GameDie::GameDie(unsigned int) so that die can be created with any positive number of faces.

If the parameter passed is zero, default to six faced die.

Otherwise, allow a die that has as many faces as provided as a parameter.

@kbuffardi
Copy link
Contributor Author

If the default constructor is used instead, the object should default to a six faced die.

saurabh-dk added a commit to saurabh-dk/GameDie that referenced this issue Feb 7, 2023
ysiddhapura pushed a commit to ysiddhapura/GameDie that referenced this issue Feb 7, 2023
AbhinavReddy-Dev added a commit to AbhinavReddy-Dev/GameDie that referenced this issue Feb 7, 2023
sourabhk25 added a commit to sourabhk25/GameDie that referenced this issue Feb 7, 2023
briswells added a commit to briswells/GameDie that referenced this issue Feb 7, 2023
prestonmasseyblake added a commit to prestonmasseyblake/GameDie that referenced this issue Feb 7, 2023
chetan2298 added a commit to chetan2298/GameDie that referenced this issue Feb 7, 2023
arshiya19 added a commit to arshiya19/GameDie that referenced this issue Feb 7, 2023
hardikpatil added a commit to hardikpatil/GameDie that referenced this issue Feb 7, 2023
@xl26 xl26 mentioned this issue Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment