diff --git a/10_Blackjack/java/src/Card.java b/10_Blackjack/java/src/Card.java new file mode 100644 index 00000000..bd343dcc --- /dev/null +++ b/10_Blackjack/java/src/Card.java @@ -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; + } + +} \ No newline at end of file diff --git a/10_Blackjack/java/src/Player.java b/10_Blackjack/java/src/Player.java new file mode 100644 index 00000000..6e7090eb --- /dev/null +++ b/10_Blackjack/java/src/Player.java @@ -0,0 +1,32 @@ +import Card; + +public class Player { + + private int currentBet; + private int total; + private LinkedList 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 hand) { + this.hand = hand; + } + + public LinkedList getHand() { + return this.hand; + } +} \ No newline at end of file