Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Game Dev: Card Dealer Module+Blackjack 31

Post any examples or modules that you want to share here

Game Dev: Card Dealer Module+Blackjack 31

Postby billv » Sat Sep 20, 2014 8:30 am

On most of the New years Eve's in my life, instead of going out and joining
all the 'pissheads' making idiots of themselves, I'd play cards with family or relatives,
usually with all the spare change i collected from that year, and get 'pissed' at home.. :lol:

It was always "Manilla"(a stripped-deck poker variant), or "Blackjack 31"...
The logic for Manilla was a bit hard first up, so I though i'd practice a bit
with Blackjack 31.

Included in fsm is a card dealer module.
Still working on this card dealer module. I want to try an expand it so
you can quickly create your own custom decks and values.
ATM it is functional, but basic....
Inputs:Reset, Deal Card, Switch Ace value to 1 or 11
Outputs:
card value(score)
card suit
value array
suit array
facevalue array
Game _Card Dealer_and_Blackjack 31.fsm
(662.92 KiB) Downloaded 1107 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby RJHollins » Sat Sep 20, 2014 8:41 am

Alright .... this is pretty darn cool Billv :lol:

I am finding issue with the 'play SOUND' in several of the RUBY modules, so I'm just REM## them out for now.

I'm not much of a card player, and not familiar with this specific game ... but this is something I hadn't expected from FlowStone. :lol:

? Is there a way to embed the audio into the schematic ?
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby billv » Sat Sep 20, 2014 9:41 am

Hi RJ,
As you can see in the code, I've used the new 'playsound' feature so it does have sound.
But I'm on XP, and coded default XP sounds in.
I was worried about this, wheather the default XP sounds were included in Vista/7/8..
websearch came up empty, and I neglected to ask the FS community about the sounds in
their C/Windows/Media folders in Vista/7/8..

Is it true RJ..? ,for eg: C:\WINDOWS\Media\chimes.wav exist on your OS?
What OS are you on...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby KG_is_back » Sat Sep 20, 2014 10:06 am

billv I've just spend half an hour playing this :-D Very well made... Only one question... How you reset the game?
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby billv » Sat Sep 20, 2014 10:15 am

:lol: :lol: ..
Sorry mate..ATM..dodgy dev style...add something to the code, then delete it. :lol:
And the start button, hit me, and stay are all a bit dodgy too. It's not a good setup..
If those triggers become 'out of order'..wham!..user has no control at the right time.
Took me awhile to get that right...kinda waiting for it to come un-stuck....
PS
did you break the bank?? :D
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby KG_is_back » Sat Sep 20, 2014 10:44 am

billv wrote:did you break the bank?? :D

well :lol: let's say I still have enough to buy myself a train-ticket home :-D
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby RJHollins » Sun Sep 21, 2014 1:08 am

Is it true RJ..? ,for eg: C:\WINDOWS\Media\chimes.wav exist on your OS?
What OS are you on...


Hi Billv,

Running XP-32 here.

I do see the 'chimes' file in that location ... but I wonder ... I'm not using the lastest FS [yet], so I did get the different version warning when loading the schematic.

Basically I was seeing the 'candycane' error around the RUBY module. The error happens from the START, and seems to happen with each button choice selected [I see the SOUND calls in each].

Maybe by me not having the latest FS, the SOUND command is not available ?!? I don't know :|
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Game Dev: Card Dealer Module+Blackjack 31

Postby billv » Sun Sep 21, 2014 2:02 am

Yeh..thats it...playsound came with 3.05.
Using playsound seemed ideal for this sort of thing.
I didn't take into account that a lot of people
are avoiding the 3.05 bugs, and are still on 3.04. :oops:
It was just a prototype, so probably wont update it.
3.04 users will have to delete playsound code like you did.
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia


Return to User Examples

Who is online

Users browsing this forum: No registered users and 26 guests