Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN30006-Group-Work
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zening Li
SWEN30006-Group-Work
Commits
6437c181
Commit
6437c181
authored
May 27, 2021
by
Zening Li
Browse files
Options
Downloads
Patches
Plain Diff
V1.21
parent
b9601e89
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cribbage/out/production/Cribbage/cribbage/IPlayer.class
+0
-0
0 additions, 0 deletions
Cribbage/out/production/Cribbage/cribbage/IPlayer.class
Cribbage/src/cribbage/IPlayer.java
+0
-4
0 additions, 4 deletions
Cribbage/src/cribbage/IPlayer.java
with
0 additions
and
4 deletions
Cribbage/out/production/Cribbage/cribbage/IPlayer.class
+
0
−
0
View file @
6437c181
No preview for this file type
This diff is collapsed.
Click to expand it.
Cribbage/src/cribbage/IPlayer.java
+
0
−
4
View file @
6437c181
...
@@ -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
();}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment