CardGame

CardGame - " if(i 1) == 0 System.out.println...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
class CardGame { c public static void main (String[] args) { final int gameSize = 4; Deck dk = new Deck(); Player[] game = new Player[gameSize]; for (int p=0; p<gameSize; p++) { game[p] = new Player(); System.out.println(game[p].getID()); System.out.print("name? "); } System.out.println("\nOriginal Deck:"); for (int i=0; i<Deck.SIZE; i++) { System.out.print(dk.cards[i].getCNum()+"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "); if ((i+1)%13 == 0) System.out.println(); } dk.shuffle(); d System.out.println("\nShuffled Deck:"); for (int i=0; i<Deck.SIZE; i++) { System.out.print(dk.cards[i].getCNum()+" "); if ((i+1)%13 == 0) System.out.println(); } System.out.println("\nanother"); dk.show(13); d } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online