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

adding numbered arrays for each dice #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hannamlittlefield
Copy link
Contributor

closes #25

@@ -21,6 +21,15 @@ const woodenBackground = require('./Images/woodBackground.png')
const switchOn = require('./Images/switchon.png')
const switchOff = require('./Images/switchoff.png')

//Dice arrays
Copy link
Contributor

@greenervigil greenervigil Sep 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's create a util function that will do this for us in a cleaner way. It can take in the number if sides as a parameter to the function and return an array.

Copy link
Contributor

@greenervigil greenervigil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's work on a function to clean up the arrays.

Is there a visual outcome to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dice arrays
2 participants