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

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




PostPosted: Sun Jun 05, 2005 4:48 pm   Post subject: Blackjack program

Here's a blackjack program that I made a while ago...it's not that good, so go easy on me. It probably would've been better if I didn't save over my original...this one was made mostly in 2 classes.

It might have a couple bugs. Feel free to fix them if you want; I have no interest in doing so, since it's already been marked Wink I GPL'd it for the hell of it.

I was too damn lazy to include instructions, so here you go:
press any key (except for 's') to hit
press s to stand
press a to change the value of an ace
press p to play again after you lose/win
press x to exit after you lose/win

Enjoy.



bj.zip
 Description:

Download
 Filename:  bj.zip
 Filesize:  1.45 MB
 Downloaded:  769 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Sun Jun 05, 2005 6:26 pm   Post subject: (No subject)

A couple of bugs:

The dealer's final card is not shown when you lose...I'm guessing that face up card we see is the Dealer's?

The scoring does not work. If you win, your score does not increase.

setscreen("nobuttonbar")

It looks decent, though your use of procedures is quite lacking. Use more parameters, passing them makes your life so much easier. Trust me on this one.
Also, what's up with those extraneously long names? Felt the need for creatively named variables?
MysticVegeta




PostPosted: Sun Jun 05, 2005 6:35 pm   Post subject: (No subject)

Also,
setscreen("nocursor")
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: