- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Do the dice have to have a positive integer number of sides?
Admin
hmm.... there's a thought....
dynamically sided dice!
Admin
Better still: fractal dice!
(Roll dem Mandelbones!)
Admin
Like always, the Lucky Deuce was vague about their requirements. I'd be curious to see the results for dice with nonintegral numbers of sides. What are the stats on two 5.5 sided dice?
Admin
what about dice with negative numbers of sides?
Admin
Also an interesting thought- but wouldn't a -6 sided die behave more or less like a 6 sided die? If you don't think it would, I'd be curious to see the results.
Admin
it would, except when adding it up!
changes the aggregate probabilities
roll 2d6+1d-6+1 still gives you the correct range of possible outcomes but with drastically shifted probabilities
@yamikuronue, i really should steal Hermes's parse code for @Sockbot to play this game....
Admin
Admin
@accalia has summoned me, and so I appear.
<!-- SockBot/2.10.2 (Bewitching Burlap; owner:accalia; user:sockbot) 2015-08-26T12:32:21.885Z -->Admin
OI! you are NOT supposed to play here! this is a restricted category!
grumble mutter
Admin
If you use imaginary numbers of sides, I'd want to see the probability distributions mapped out on the complex plane.
Admin
Oh, wait, you meant the mathematical concept...
Admin
There's some nasty implied edge case games in the requirements
Craps on 1d6: You can never come out as outcomes are most common to come out Craps on 2d6+1d8 (http://anydice.com/program/3599) or 3d6(http://anydice.com/program/1): You have 2 highest probabilities excluding those from come out calculations Craps on 1d6 + 1d8 (http://anydice.com/program/1c83): You have 3 highest probabilities excluding from come out Craps on 2d2 (http://anydice.com/program/75c): You can never come out as all potential cases are either lowball or highball)
Admin
If I understood the requirements correctly all dice should have the same amount of sides. So 5d5 or 1d6 or 3d7, but no 3d5 + 2d6.
Admin
I don't see that restriction in the requirements and I'd be suprised if the evaluators don't try some of these nasty tricks.
QA tester walks into a bar, Orders a beer, Orders a beer, Orders 2 beers, Orders -1 beer, Orders bear beers, Orders 部落格 beers, Orders 💔 beers, Orders التّحول beers, (Infidel) Orders Z̮̞̠͙͔ͅḀ̗̞͈̻̗Ḷ͙͎̯̹̞͓G̻O̭̗̮, Orders 1;DROP TABLE users beers, Etc.
Admin
It says: "Here is what your program needs to do: given a number of dice and a number of sides, it needs to determine the following information"
So I assumed it takes only two numbers as parameters.
But I think that the requirements are intentionally very vague to reflect real world software development as good as possible. :wink:
Admin
And if you had read higher you would have seen these gems by Remy
This suggested in my mind that we have to engineer for the extended case as Remy is a writer for the site and may have tipped his hand in some of the use cases.
Admin
According to Google translate, التّحول means converting, while infidel is كافر.
Admin
I was making a joke at someone in a arabic country ordering a beer (as it's forbidden)
Admin
And I was being pedantic about it, but it did not turn out as funny as your joke was.
Admin
"“Craps,” they say, “is of only having 12 possible outcomes."
12? I only counted 11.
I read a book by Mike Moorcock once, in which there was a scene in which someone awoke with an urgent need to urinate. I continued following the fortunes of this geezer for quite a few chapters more, and never did he actually get the chance to do something about it. It was most uncomfortable reading.
At least when something similar happened in Illuminatus! the author gave Joe Malik the opportunity to use a trash can.
Admin
So 2 dice, 6 sides could be any of:
2d6 1d2 + 1d4 2d3 1d1 + 1d5
Admin
How does 1d1 work? Isn't that just 1?
Admin
If it's craps, I suspect that the real outcome is consistently “give your money to the house”.
Admin
what really happens is, the first time you play, the shooter gets on a hot steak, you win a bunch of money, everyone is celebrating, and it's a great rush. then you spend hours at the table losing money just waiting for the next rush...
Admin
The only time I ever played — with someone else's money, mind you — I lost it all virtually instantly. At that point, I switched from thinking about the game to analysing the payout chances, and decided that the best thing I could do was to give my chips back to my host and never ever play again. Saves time and worry.
Admin
FTFY.
Admin
Damn. That like happened so fast it was almost before I hit the reply button.
Admin
Seems like much more of an optimization problem than a "cheat", unless I missed something.
Admin
No, he actually won the "Bruce Says So" award. Big difference!
Admin
With all the race conditions over here, I wouldn't rule that possibility out.
Admin
I'd imagine so.
Admin
We could ask SockBot, but I don't think he has a dice module at the moment. Plus he won't answer in here anyway; ignored category.
Admin
yes, but randomly so.
havent gotten around to upgrading that module. got bigger bugs right now. Unless I ask, that's one of the bugs i need to fix.Admin
True. Should we note that the requirements didn't say that for an n-sided die the values must be 1, 2,..n? I suppose we should.
Admin
So I can't use my die with the numbers 1, √2, φ, e, π, and ∞?
Admin
I can't see anything in the requirements that say you can't. So long as you can make the game make sense.
Admin
Can I have a d6 with the numbers 3,3,3,3,4,4?
Admin
hmmm......
/me invisions a craps game involving non-transitive dice