Computer Science Canada

Blackjack Help

Author:  Pooko [ Fri May 30, 2008 9:36 am ]
Post subject:  Blackjack Help

I need some help making my game work, i have the cards in an array and the can't be doubled, i need the BET and HIT button to work and the other buttons to work better, i don't know what to do for them. I have tried but i can't get it to work. any help would be great.

The program is called Program!.t and the rest are the card pictures and the button making process is the buttons.t file.

Thanks

Author:  Pooko [ Tue Jun 03, 2008 1:19 pm ]
Post subject:  Re: Blackjack Help

I made the hit buton work and the bet button now i need some help with showing the bet input and recounting teh cards after you hit. I don't know what i can do, i need some help.

Author:  SNIPERDUDE [ Tue Jun 03, 2008 1:32 pm ]
Post subject:  RE:Blackjack Help

recording what cards have been played?

have an array that represents whether a card has been taken out of deck.

ex:
code:

var cardPlayed : array 1 .. 52 of boolean

%setting everything to false, just as a default
for i : 1 .. 52
    cardPlayed (i) := false
end for

%once card has been taken out or whatever
cardPlayed (card taken out) := true


You can switch it around to be card still in deck if you want - which would make the deafult true, not false


: