954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

black jack game

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 ;)

Attachments Client7.java (3.11KB) Server.java (1.05KB) Deck.java (1.54KB)
daviie
Newbie Poster
1 post since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

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.

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You