Blackjack

This is a discussion on Blackjack within the Game Programming forums, part of the General Programming Boards category; I need help creating a simple blackjack program with C++. Any help would be appreciated....

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    1

    Blackjack

    I need help creating a simple blackjack program with C++. Any help would be appreciated.

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282

    hmm

    ask a more specific question.

    anyway,

    clues:

    you have to use randomize() and rand() somewhere
    to generate the cards while playing the game

    you can create an array of all the cards and their "values" (J = 10,
    etc)

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    these will be able to start you off on the right track...

  4. #4
    Quantrizi
    Guest
    What is the value for A in blackjack? I'm askin' this because I'm working on a blackjack game and the array doesn't let me use characters.

  5. #5
    Christian
    Join Date
    Mar 2002
    Posts
    618
    if you want to use characters use a char aray.

    char cards[52]

    anyways by A I am persuming an Ace, witch has the value of either 11 or 1.
    I shall call egypt the harmless dragon

    -Isaiah 30.7

  6. #6
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Ok, I got the array for the card values, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Blackjack Program
    By saber1357 in forum C Programming
    Replies: 1
    Last Post: 03-28-2009, 03:19 PM
  2. Help with Blackjack program
    By sugie in forum C++ Programming
    Replies: 1
    Last Post: 04-30-2005, 12:30 AM
  3. Blackjack!
    By Dr. Bebop in forum Game Programming
    Replies: 1
    Last Post: 10-03-2002, 08:58 PM
  4. Blackjack
    By the_head in forum C Programming
    Replies: 1
    Last Post: 08-03-2002, 08:57 AM
  5. BlackJack Program...
    By 67stangman in forum C++ Programming
    Replies: 3
    Last Post: 05-06-2002, 10:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21