Results 1 to 2 of 2

Thread: Deck Shuffle

  1. #1
    Cragsterboy is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default Deck Shuffle

    Hey,

    Im new to the java scene and i need to create a piece of code which will shuffle a pack of codes X amount times depending on what number the user inputs.

    Im guessing that i need to have two strings, one for suits of the cards and the other for values of the card, i would then put these strings together into an array. Then a loop is used to shuffle the deck X amount of times.

    Am i on the right lines? Also could you give me tips on how to do this and links to tutorials whihc would help me.

    Thanks,

    ~Crag

  2. #2
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    There are lots of discussions of cards, decks and shuffling here on the forum. Use the Search feature.

    -Gary-

Similar Threads

  1. Deck of Cards
    By khunmato in forum New To Java
    Replies: 13
    Last Post: 09-06-2009, 06:47 PM
  2. Shuffle Group Method
    By xelo in forum New To Java
    Replies: 6
    Last Post: 01-05-2009, 08:41 PM
  3. 2D Array Random Shuffle
    By Nuluvius in forum New To Java
    Replies: 8
    Last Post: 11-23-2008, 07:15 PM
  4. How do I shuffle an arraylist?
    By frasifrasi in forum New To Java
    Replies: 2
    Last Post: 07-17-2008, 12:29 AM
  5. How to Shuffle a particular String
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-06-2008, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •