View Single Post
  #1 (permalink)  
Old 09-10-2008, 03:50 PM
boomba88 boomba88 is offline
Member
 
Join Date: Sep 2008
Posts: 1
boomba88 is on a distinguished road
creating a deck of cards using a linked list
public class Deck extends LinkedList <Card>
{private int cardPos = 0
public Deck()
{

for (int card = 1; card <= 13; card ++)
{ for ( Suit suit: Suit.values())
new Card(card, suit)
}}}

hi all im creating a deck of cards for a poker game and want to store it in a linked list, can someone please help me with storing them in the list and also shuffling and dealing the cards
tahnkyou
Reply With Quote
Sponsored Links