Page 1 of 1
Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 8:30 am
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..
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
Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 8:41 am
by RJHollins
Alright .... this is pretty darn cool Billv
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.
? Is there a way to embed the audio into the schematic ?
Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 9:41 am
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...
Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 10:06 am
by KG_is_back
billv I've just spend half an hour playing this

Very well made... Only one question... How you reset the game?
Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 10:15 am
by billv

..
Sorry mate..ATM..dodgy dev style...add something to the code, then delete it.
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??

Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sat Sep 20, 2014 10:44 am
by KG_is_back
billv wrote:did you break the bank??

well

let's say I still have enough to buy myself a train-ticket home

Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sun Sep 21, 2014 1:08 am
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

Re: Game Dev: Card Dealer Module+Blackjack 31
Posted: Sun Sep 21, 2014 2:02 am
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.
It was just a prototype, so probably wont update it.
3.04 users will have to delete playsound code like you did.