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

Username:   Password: 
 RegisterRegister   
 Black Jack Game-Updated
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
charlie56




PostPosted: Fri Apr 08, 2005 12:29 pm   Post subject: Black Jack Game-Updated

here is my black jack program its still got some things to work out. Say n to the music because i didnt upload the midi. h for hit, s for stand, y and n for yes and no on any yes and no question.

EDIT (april 13, 2005)
i have updated the game it is a lot more fool proof and everything works as it should but because of me completely changing the code there is prolly a lot of redudant lines of code but anyways here it is tell me wut u think



Game.t
 Description:

Download
 Filename:  Game.t
 Filesize:  14.54 KB
 Downloaded:  426 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
jamonathin




PostPosted: Fri Apr 08, 2005 2:04 pm   Post subject: (No subject)

Not bad, very dull and boring. Add some graphics man. And don't ask if we want to make the ace 1 or 11. I've said this so many times in all blackjack posts. STOP DOING IT, ITS DUMB!. Also, you should have what the scores are somewhere. Just so we can recap whenever we want.
jamonathin wrote:
I've made blackjack before and its really simple, if the total of your score is over 21 with an ace, then make the ace 1. It'll just take up a few lines and your done. And assign a variable to determine if there is an ace, so that if you start with an ace and make it 11, then add another number later and it gets over 21, you can change your previous ace to a 1, rather than an 11.

http://www.compsci.ca/v2/viewtopic.php?t=8223&start=0
charlie56




PostPosted: Fri Apr 08, 2005 2:10 pm   Post subject: (No subject)

there its been updated now the aces should work fine. and yes i no it looks terrible but i just want ot get the game working and all then make it look nice. but i dont how to do a gui yet. i also am going to have a highscores list so when they choose to stop playing it will put there score into the scores list then display them. and Is there a way to map a key to a function so lets say if i press esc it will run the procedure menu, and bring up a menu?
jamonathin




PostPosted: Fri Apr 08, 2005 2:16 pm   Post subject: (No subject)

code:

var key : array char of boolean
if key (KEY_ESC) then
     menu
end if


Note: You will have to put this into your loop
code:
Input.KeyDown (key)


ALso, your game doesn't work right. When you hit, it stands, when you stand, you stand. Also, if the user goes over the max bid (past dollars) then juss make his bid everything he has. ( bid := dollars )

p.s. I've never won Confused
charlie56




PostPosted: Fri Apr 08, 2005 2:27 pm   Post subject: (No subject)

ok lol hit is 'h' not 'hit' . and ya ill make the bet do that. im gonna have a better intro kinda page and have good instrcutions written on it. well just so every1 knows here are the problems i am aware of if u bust and had an ace its puts the ace to 1 but then doesnt ask u if u want to hit again or not, im not sure if its fixed or not i think i did but once in a while when the dealer busts it still wins even tho it busted. thats all i can think of right now. and when ur money gets to zero u can keep betting and u just wont lose the money if u lose.
charlie56




PostPosted: Sat Apr 09, 2005 1:34 pm   Post subject: (No subject)

there i have updated it now it has a way better decider for who won the round.
charlie56




PostPosted: Wed Apr 13, 2005 7:14 pm   Post subject: (No subject)

i want to implement a few things more still. Like possibly a GUI. the highscores im gonna be implementing prolly tonight any other suggestions just post. Can a mod delete my last post it isnt needed.
jamonathin




PostPosted: Thu Apr 14, 2005 8:17 am   Post subject: (No subject)

Lookin good, much better than before. After you get your highscore put in, juss fancy it up a little bit. Like, center the screen, nobuttonbar, colours, Font.Draw and whatnot. Actual cards would be pointless though. Unless your making a Casino where you have multiple card games, then I'd say do it, otherwise it's not necessary.
One little error though. I got $13890884 by playing for about 2 mins. Juss change any negative bid to a positive, because I could bid
-999999 Razz.
Other than that good work, keep it up. Check tutorials if you're stuck on highscore.
Sponsor
Sponsor
Sponsor
sponsor
charlie56




PostPosted: Thu Apr 14, 2005 12:45 pm   Post subject: (No subject)

Another update:
-now with gui
-fixed betting procedure
-rules
-highscorelist
-a lot more user friendly

I have one problem that only happens sometimes how do i clear the buttons cuz sometimes i press a button than one from be4 show up. should i just make them in different spots instead?

I plan on making it look nicer still like with coloured background and stuff but not sure hwo to go about that.



Game.t
 Description:

Download
 Filename:  Game.t
 Filesize:  21.53 KB
 Downloaded:  183 Time(s)

jamonathin




PostPosted: Thu Apr 14, 2005 3:16 pm   Post subject: (No subject)

Look up on how to disable buttons. Also, with every game I made, after I change the setscreen options, I ddin't have to worry about the buttons, so I didn't.
Also, look this game I made. Pay attention to the intro and character selection screen, and try to pick up tips from that.
http://www.compsci.ca/v2/viewtopic.php?t=7890
And just find any game that you think has good, whats the word, details? I dunno, but juss find one you like that has the source code with it and learn from that. The best way to learn is through experience and screwing up a lot.
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  [ 10 Posts ]
Jump to:   


Style:  
Search: