Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #168: Dice Game - Born to Solve

Highlighted
8 - Asteroid
Spoiler
168.PNG
Highlighted
7 - Meteor
 
Highlighted
6 - Meteoroid
 
Highlighted
Alteryx Partner

The mathsy challenges are the best!

Highlighted
8 - Asteroid
Spoiler
challenge_168_solution_justindavis.PNG
Highlighted
8 - Asteroid
 
Highlighted
8 - 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

Highlighted
Alteryx Certified Partner

fun challenge

Spoiler
Challenge 168.png
5 - 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

Highlighted
5 - Atom
Spoiler
Dice Game Logic.png