blackjack

This is a discussion on blackjack within the C Programming forums, part of the General Programming Boards category; i want my blackjack program to pretty much to print out that it is shuffling and just put out 4 ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    41

    blackjack

    i want my blackjack program to pretty much to print out that it is shuffling and just put out 4 more random cards; two on one line and two on the next line. i am so lost on this blackjack program!!!!!!!!! some please hook me up with a snippet or two to help get me started.

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    399
    Code:
    printf("%s\n", "Shuffling...");

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I don't think most players would like that approach. They are going to want the whole deck shuffled thoroughly, and then have cards dealt to them only from the top of the deck.

    One thing hasn't much in card games - it's VERY important to avoid the appearance of cheating or in any way, bending the rules of the game.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Memloop View Post
    Code:
    printf("%s\n", "Shuffling...");
    Why use two strings when one will do?
    Code:
    puts( "Shuffling..." );

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,288
    Code:
    puts( "Shuffling...\n4 of Dimonds Jack of Hearts\n8 of Clubs 9 of Dimonds" );
    Don't start multiple threads for the same thing. This thread should simply have been continued.

    Frankly gloworm, you really need to learn how to ask questions the smart way! Please read that article.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    Agreed - closed. Use the other thread.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

Tags for this Thread


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