community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Getting started with Designer? | Start your journey with our new Learning Path!

Challenge #168: Dice Game - Born to Solve

Asteroid
Spoiler
168.PNG
Meteoroid
 
Meteoroid
 
Alteryx Partner

The mathsy challenges are the best!

Asteroid
Spoiler
challenge_168_solution_justindavis.PNG
Asteroid
 
Highlighted
Asteroid

I created an app that allows the user to specify (1) the number of dice and (2) the number of sides on the dice. It was a challenge to work out the number of possible combinations dynamically.

 

168 app options.PNG

Alteryx Partner

fun challenge

Spoiler
Challenge 168.png
Atom

Given that there are 3 dice, need only look for the min. By default, the other two are the larger two and can be multiplied together, and have their result added to the min. Count which result appears the most, and this is what is expected

Spoiler
Dice Game Logic.png