Results 1 to 2 of 2

Thread: Deck Shuffle

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

    Default Deck Shuffle


    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.



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


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


Similar Threads

  1. Deck of Cards
    By khunmato in forum New To Java
    Replies: 13
    Last Post: 09-06-2009, 05: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-16-2008, 11:29 PM
  5. How to Shuffle a particular String
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-06-2008, 07: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