mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Add Player and Card objects
This commit is contained in:
21
10_Blackjack/java/src/Card.java
Normal file
21
10_Blackjack/java/src/Card.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user