package fivecardstud;

public class Player {
    String name;
    Card[] hand;
    
    public Player(String name, Card[] hand){
        this.name = name;
        this.hand = hand;
    }
}

@@ -19,30 +19,125 @@
 ud;%0A
-%0Apublic class Player %7B
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class Player %7B%0A    int playerNumber;%0A    List%3CCard%3E cards;
 %0A   
@@ -154,22 +154,20 @@
 me;%0A    
-Card%5B%5D
+Hand
  hand;%0A 
@@ -170,16 +170,21 @@
 d;%0A    %0A
+    %0A
     publ
@@ -197,86 +197,686 @@
 yer(
-String name, Card%5B%5D hand)%7B%0A        this.name = name;%0A        this.hand = hand;
+int playerNumber, String name)%7B%0A        cards = new ArrayList%3C%3E();%0A        this.playerNumber = playerNumber;%0A        this.name = name;%0A        this.hand = new Hand();%0A    %7D%0A    %0A    public void deal()%7B%0A        cards = hand.deal();%0A    %7D%0A    %0A    public void show()%7B%0A        for (Card card: cards)%7B%0A                System.out.println(this.name + %22 -- %22 + card.rank + %22 of %22 + card.suit);%0A        %7D%0A        System.out.println(%22%22);%0A    %7D%0A    %0A    public static void createAll()%7B%0A        // create players based on numPlayers%0A        for (int i=0; i%3CStatus.numPlayers; i++) %7B%0A            FiveCardStud.status.players.add(new Player(i+1, %22Player %22 + Integer.toString(i+1)));%0A        %7D
 %0A   

refactor some; cards are brought out of Hand correctly