943,946 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2610
  • Java RSS
Jan 3rd, 2006
0

black jack game

Expand Post »
hi, i need some help with this black jack game. it has a server and a client part.
the server is supposed to handle the cards and be automatic, and the client is handled by the user.

i want the server to shuffle the deck at the beginning, and when the user presses "new card" the next card in the decks value will show up.

i am a beginner at java so please explain so i can understand
Attached Files
File Type: java Client7.java (3.1 KB, 99 views)
File Type: java Server.java (1.1 KB, 115 views)
File Type: java Deck.java (1.5 KB, 124 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
daviie is offline Offline
1 posts
since Jan 2006
Jan 3rd, 2006
0

Re: black jack game

1. Just make an ArrayList of cards, the cards can be in any order.
2. Randomly select an index to grab a card.
3. Remove that card from the list (deck)
4. when you want to reshuffle a new deck, just rebuild the array list with all 52 cards and pick a new "seed" for the randomizer.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: A Progress/Seek Bar for Audio
Next Thread in Java Forum Timeline: producing javadoc





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC