Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Blackjack Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Pooko




PostPosted: 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



Card Game Folder.zip
 Description:

Download
 Filename:  Card Game Folder.zip
 Filesize:  49.19 KB
 Downloaded:  111 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Pooko




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


Card Game Folder.zip
 Description:

Download
 Filename:  Card Game Folder.zip
 Filesize:  242.56 KB
 Downloaded:  80 Time(s)

SNIPERDUDE




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: