Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Cool blackjack game
Author Message
gigaman

Posted: Mon Sep 27, 2004 9:00 am   Post subject: Cool blackjack game

This is a really fun blackfack game

blackjackv2.t
Description:
Filename:  blackjackv2.t
Filesize:  17.68 KB

Cervantes

Posted: Mon Sep 27, 2004 5:49 pm   Post subject: (No subject)

Nice work, it looks like you put a lot of effort into this. There are, however, a few touch ups that could be done: I found that on time when i asked for a hit, the program then asked me if I wanted to play again, y/n. in the middle of the game.
also, you could make it so that players can have more than three total cards. I got stuch with a 2, 3, and a 4 one time, and couldn't hit myself again. Also, some dealer AI would be good.
ie. if the value of the player's face cards plus seven (the average card value approximately) is greater than what the dealer has, he'll take a hit, provided he is not above 18 or something.
mind you, some people play that the dealer MUST take a hit if his cards total 16 or under, and that he MUST stay if his cards total above 16. If you play like this, AI isn't necessary 8)

As you progress with your knowledge and skill of programming, you'll find that you will be able to reduce the amount of lines it takes you to write a program like this.

Happy Programming, thanks for the submission.
+5 BITS
Genesis

Posted: Mon Sep 27, 2004 8:05 pm   Post subject: (No subject)

Cool game. Though like Cervantes said, a bit buggy. I experienced the same problem with the asking if I wanted to play again when I hit. And taking more than 3 cards would be nice.

Also, the amount of code is huge. BUT as you get better, shortening that won't be a problem.

Cervantes wrote:
mind you, some people play that the dealer MUST take a hit if his cards total 16 or under, and that he MUST stay if his cards total above 16.

If the dealer has 18 or above, he must stay, otherwise he must hit. Those are the rules of blackjack. So AI isn't really necessary, just a simple If statement.

But black jack's always fun. Have some more bits.

+5 Bits
djlenny_3000

Posted: Tue Sep 28, 2004 8:23 am   Post subject: (No subject)

good job ruth i saw u write the whole thing an it look like a pain in the arse

i agree with the u need more than 3 cards

neways here's some bits
gigaman

Posted: Tue Sep 28, 2004 8:27 am   Post subject: about the AI

yeh i found the bugs a wile after i posted it. Sorry everyone I thought I got them. as for the AI it has a basic 1 playing withthe rules that the dealer has to hit if under 16 if not the dealer doesn't hit. Thanks for the replies
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 5 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: