Blackjack program
Author |
Message |
Frazzydee
|
Posted: 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 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.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
bj.zip |
Filesize: |
1.45 MB |
Downloaded: |
773 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: 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?
|
|
|
|
|
![](images/spacer.gif) |
MysticVegeta
![](http://www.geocities.com/ohsoinsane/my_avatar.JPG)
|
Posted: Sun Jun 05, 2005 6:35 pm Post subject: (No subject) |
|
|
Also,
setscreen("nocursor")
|
|
|
|
|
![](images/spacer.gif) |
|
|