Problem 44288. Throwing Dice - Will You Be Eaten By The Dragon?
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
David Verrelli
on 25 May 2018
Hello, Erin. It's a really interesting problem. According to Solution 1539769, I think it would be worthwhile for you to include some (small) tolerances within the assert statements in your Test Suite, to allow for rounding due to computations in 'double precision'. —DIV
Rafael S.T. Vieira
on 27 Jul 2020
I agree with David.
Brandon
on 27 Feb 2023
The solution to this problem was stupidly easier than I first thought. Expected value of your own throws is all that really matters here.
Dyuman Joshi
on 21 Mar 2023
The test suite has been updated with additional test cases and a check against a tolerance instead of using isequal()
Solution Comments
Show commentsProblem Recent Solvers73
Suggested Problems
-
2681 Solvers
-
7519 Solvers
-
203 Solvers
-
640 Solvers
-
Replace Nonzero Numbers with 1
328 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!