Add Player and Card objects

This commit is contained in:
Mitch Peck
2022-01-22 20:15:09 -06:00
parent 92da37d0d5
commit 3411d33f18
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
public class Card {
private int value;
private String suit;
public void setValue(int value) {
this.value = value;
}
public int getValue() {
return this.value;
}
public void setSuit(int suit) {
this.suit = suit;
}
public int getSuit() {
return this.suit;
}
}

View File

@@ -0,0 +1,32 @@
import Card;
public class Player {
private int currentBet;
private int total;
private LinkedList<Card> hand;
public void setCurrentBet(int currentBet) {
this.currentBet = currentBet;
}
public int getCurrentBet() {
return this.currentBet;
}
public void setTotal(int total) {
this.total = total;
}
public int getTotal() {
return this.total;
}
public void setHand(LinkedList<Card> hand) {
this.hand = hand;
}
public LinkedList<Card> getHand() {
return this.hand;
}
}