11-28-2013 09:08 PM
Figuring out how to make the dice work is difficult enough, but I'm no LabVIEW expert. The goal is to make a working craps game with a case structure. One case for each of the 6 dice, plus a 7th case for default. Everything has to be in a while loop with a timer and a master stop button. There has to be a button for the user to start a new game anytime. A numeric display and logic should be used to determine the score of the dice. Any pointers???
Solved! Go to Solution.
11-29-2013 01:50 AM
Above is shown how te case structure has to be connected. I hope you can find rest out yourself because this pretty much basic.
If you still don't know, do a free Labview cursus.
11-29-2013 02:58 AM
Change the multiplier to 6 and round toward -inf, else you'll get strange results. 🙂
/Y
11-29-2013 03:04 AM
You mean like this?
What is the reason of the strange results?
Is the round to nearest not workign properly?
11-29-2013 03:14 AM - edited 11-29-2013 03:16 AM
Hi Koen,
Christian Altenbach has this explained somewhere else (a lot of times) before...
It's about probability of your RND values: when rounding to next you get different probability for values at the "edge" compared to values in the "center"!
Example:
Multiplying RND values with 5 results in values between 0 and 5. Rounding those values "to next" will give "1"-"4" more often then "0"/"5" as the range [0-0.5] is smaller than the range [0.5-1.5]...
Using RoundDownwards will always use the same range [0-1], [1-2], ... for rounding and so will have the same probability for each dice!
11-29-2013 03:15 AM
Oh, now I see it...
It's just common sense
Thank you for yours explanation
11-29-2013 02:45 PM
Thank you to everyone who provided input here. Your help is greatly appreciated and will definitely do me some good.