Anonymous user
Talk:Dice game probabilities: Difference between revisions
possible extended task?
Walterpachl (talk | contribs) (→Rational Arithmetic: new section) |
(possible extended task?) |
||
Line 48:
Inspired by Racket I boosted ooRexx and PL/I by using Rational Arithmetic. Actually I should have used the implementation that can be found here on RC! but I rolled my own before looking. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 18:57, 22 January 2015 (UTC)
== Possible extension? ==
Nice task. While implementing it, I found myself briefly misunderstanding the "draw" scenario and an interesting alternative occurred to me. What if a "draw" resulted in the game being re-run? This changes the probabilities fairly significantly (not just <tt>W/(W+L)</tt>, but <tt>(W + D*k)/(W+L+D)</tt> for some <tt>k</tt>, which can be determined by running lots of trials or by calculus. That probably puts it more in the realm of a Project Euler task than RosettaCode, but might make a fun extension. --[[User:Aspectcl|Aspectcl]] ([[User talk:Aspectcl|talk]]) 04:50, 20 June 2015 (UTC)
|