Skip to content
Snippets Groups Projects
Commit 6437c181 authored by Zening Li's avatar Zening Li
Browse files

V1.21

parent b9601e89
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -8,14 +8,10 @@ public abstract class IPlayer { ...@@ -8,14 +8,10 @@ public abstract class IPlayer {
int id; int id;
Deck deck; // Need this since can't get from hand to deck Deck deck; // Need this since can't get from hand to deck
Hand hand; Hand hand;
int score;
void setId(int id) { void setId(int id) {
this.id = id; this.id = id;
} }
public int getId(){return id;}
public void setScore(int score){this.score = score;}
public int getScore(){return score;}
void startSegment(Deck deck, Hand hand) {this.deck = deck; this.hand = hand;} void startSegment(Deck deck, Hand hand) {this.deck = deck; this.hand = hand;}
abstract Card discard(); abstract Card discard();
boolean emptyHand() {return hand.isEmpty();} boolean emptyHand() {return hand.isEmpty();}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment