Game Dev: Card Dealer Module+Blackjack 31

Post any examples or modules that you want to share here
Post Reply
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Game Dev: Card Dealer Module+Blackjack 31

Post by billv »

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 1170 times
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by RJHollins »

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 ?
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by billv »

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...
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by KG_is_back »

billv I've just spend half an hour playing this :-D Very well made... Only one question... How you reset the game?
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by billv »

: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
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by KG_is_back »

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
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by RJHollins »

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 :|
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Game Dev: Card Dealer Module+Blackjack 31

Post by billv »

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