[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Tony Toews

7/30/2011 1:32:00 AM

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.

Thanks, Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/ac...
Tony's Microsoft Access Blog - http://msmvps.com/blo...
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeup...
6 Answers

MikeD

7/30/2011 2:06:00 PM

0



"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


Jason Keats

7/30/2011 2:46:00 PM

0

Tony Toews wrote:
> 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.
>
> Thanks, Tony

I agree with Mike that it's a bad idea to go virtual, however here's a
few different demos (some with code)...

http://www.vbtutor.net/games...
http://dice.virtu...
http://www.bgfl.org/bgfl/custom/resources_ftp/client_ftp/ks1/m...
http://dicelo...
http://www.edwardsmale....

Which one is closest to what you were "dreaming" of?

Tony Toews

7/31/2011 12:17:00 AM

0

On Sat, 30 Jul 2011 10:05:59 -0400, "MikeD" <nobody@nowhere.edu>
wrote:

>It sounds as if you haven't even tried writing this yourself. How hard can
>it be?

No I haven't.

>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.

That part is easy.

>If you want visuals, create 6 bitmaps, one for
>each die face. That can't be that hard either.

That's a bit more tricky as I'm not familiar with using bitmap images
in VB6. Also I was thinking in terms of having the graphics somehow
spinning or rolling or something but wasn't sure.

I also have lots of challenges in my paying work. I wasn't looking
for any more challenges. <smile>

>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.

I do agree with you on this in general. And there have been
documented cases where favoured individuals in online poker websites
have seen their opponents cards.

In this particular case though it is a fundraiser for the non profit
group during as audience members place bets, etc, etc. So it's pretty
lowkey. I suspect total bets would be no more than $200 per the one
night per week with 50% going back to the winners.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/ac...
Tony's Microsoft Access Blog - http://msmvps.com/blo...
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeup...

Tony Toews

7/31/2011 12:24:00 AM

0

On Sun, 31 Jul 2011 00:46:29 +1000, Jason Keats
<jkeats@melbpcDeleteThis.org.au> wrote:

>I agree with Mike that it's a bad idea to go virtual, however here's a
>few different demos (some with code)...
>
>http://www.vbtutor.net/games...
>http://dice.virtu...
>http://www.bgfl.org/bgfl/custom/resources_ftp/client_ftp/ks1/m...
>http://dicelo...
>http://www.edwardsmale....
>
>Which one is closest to what you were "dreaming" of?

The first one which is rather embarressing. I thought I had done a
search but.

Now the last one though is just plain cool! I wonder if I can
create a stand alone web page with the Silverlight code embedded.

Thanks Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/ac...
Tony's Microsoft Access Blog - http://msmvps.com/blo...
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeup...

shiftbreak

8/2/2011 3:45:00 PM

0

Tony Toews wrote on 07/30/2011 20:24 ET :
> On Sun, 31 Jul 2011 00:46:29 +1000, Jason Keats
> wrote:
>
>> I agree with Mike that it's a bad idea to go virtual, however here's a
>> few different demos (some with code)...
>>
>> http://www.vbtutor.net/games...
>> http://dice.virtu...
>> http://www.bgfl.org/bgfl/custom/resources_ftp/client_ftp/ks1/m...
>> http://dicelo...
>> http://www.edwardsmale....
>>
>> Which one is closest to what you were "dreaming" of?
>>
>>
>>
> The first one which is rather embarressing. I thought I had done a
> search but.
>
> Now the last one though is just plain cool! I wonder if I can
> create a stand alone web page with the Silverlight code embedded.
>
> Thanks Tony
> Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages - http://www.granite.ab.ca/ac...
> Tony's Microsoft Access Blog - http://msmvps.com/blo...
> For a convenient utility to keep your users FEs and other files
> updated see http://www.autofeup...
>
Sure you can display this in your own web page. Download the .xap file here:
http://www.edwardsmale.co.uk/Silverlig... and reference it in your page
using this markup:

<div id="silverlightControlHost" style="float: left;
background-color: White; text-align: center;" >
<object data="data:application/x-silverlight-2,"
type="application/x-silverlight-2" width="800"
height="500">
<param name="source" value="SilverlightDice.xap"/>

<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />

<a
href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.408...
style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=16...
alt="Get Microsoft Silverlight"
style="border-style:none"/>
</a>
</object>

<iframe id="_sl_historyFrame"
style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>

</div>

Hope this helps!

Ed

mm

8/7/2011 9:55:00 PM

0

El 29/07/2011 10:31 p.m., Tony Toews escribió:
> 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.
>
> Thanks, Tony

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=64377&am...