MikeD
7/30/2011 2:06:00 PM
"Tony Toews" <ttoews@telusplanet.net> wrote in message
news:ffn637pebkfr2n129l7nv89rlotdo2v3si@4ax.com...
> Folks
>
> This is for a non profit group. They are currently running a "horse
> race" fundraiser by using a camera on one foot cube dice with the
> ladies doing the physical rolling of the dice. They'd like to replace
> that with a laptop, some virtual dice and a video feed to the TV
> screens.
>
> So does anyone have such a game they've created in the past with
> randomly changing dice faces, etc? I can easily adapt whatever
> someone has done to match their particular requirements.
>
It sounds as if you haven't even tried writing this yourself. How hard can
it be?
All you need to do is randomly generate a number (or set of numbers
depending on how many die you're rolling) from 1 to 6. If you don't know how
to do that, look up the Randomize statement in VB6's Help as that's the
exact example it provides. If you want visuals, create 6 bitmaps, one for
each die face. That can't be that hard either. I'd be willing to bet you
can find such images on the Internet with just a little bit of searching.
It shouldn't even be that hard to simulate rolling the dice across a table
as all you need to do is change images and move those images from point to
point. As far as the rest, you're right in that those would be "particular
requirements" and any code provided probably wouldn't be what you need or
want. I'm not trying to lecture or anything, I just think you should try
writing it yourself before asking for a hand-out. That's what makes
programming fun: solving a particular challenge. What's the fun in it just
being given to you?
Just a personal opinion, even though this is non-profit, I'm still betting
(pun intended) that people can win either money or some other prize(s).
Personally, I don't trust (or maybe merely "like" would be a better word to
use) anything computerized for this, simply because they ARE programmed and
CAN be programmed to do anything. That's exactly why I don't play slot
machines or other video gambling devices in casinos (besides the fact that I
just don't find them to be fun). They are all programmed to "win" a specific
percentage of the time. There's no true randomness about them. But that's
just me. I'll stick to the real dice-rolling and real cards being dealt.
Now of course, if it's purely for amusement only and there's nothing at
stake, well, that's different.
--
Mike