Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Homework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Siyu Lin
Homework
Commits
32025618
Commit
32025618
authored
10 years ago
by
Siyu Lin
Browse files
Options
Downloads
Patches
Plain Diff
Modified CatchAllEvaluator
parent
277d747a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homework/src/hw3/CatchAllEvaluator.java
+53
-3
53 additions, 3 deletions
homework/src/hw3/CatchAllEvaluator.java
with
53 additions
and
3 deletions
homework/src/hw3/CatchAllEvaluator.java
+
53
−
3
View file @
32025618
package
hw3
;
import
api.Card
;
import
api.Hand
;
/**
* Evaluator satisfied by any set of cards. The number of
* required cards is equal to the hand size.
...
...
@@ -8,7 +11,7 @@ package hw3;
*/
//Note: You must edit this declaration to extend AbstractEvaluator
//or to extend some other class that extends AbstractEvaluator
public
class
CatchAllEvaluator
public
class
CatchAllEvaluator
extends
AbstractEvaluator
{
/**
* Constructs the evaluator.
...
...
@@ -19,9 +22,56 @@ public class CatchAllEvaluator
*/
public
CatchAllEvaluator
(
int
ranking
,
int
handSize
)
{
// TODO: call appropriate superclass constructor and
// perform other initialization
}
@Override
public
String
getName
()
{
// TODO Auto-generated method stub
return
null
;
}
@Override
public
int
getRanking
()
{
// TODO Auto-generated method stub
return
0
;
}
@Override
public
int
cardsRequired
()
{
// TODO Auto-generated method stub
return
0
;
}
@Override
public
int
handSize
()
{
// TODO Auto-generated method stub
return
0
;
}
@Override
public
boolean
canSatisfy
(
Card
[]
mainCards
)
{
// TODO Auto-generated method stub
return
false
;
}
@Override
public
boolean
canSubsetSatisfy
(
Card
[]
allCards
)
{
// TODO Auto-generated method stub
return
false
;
}
@Override
public
Hand
createHand
(
Card
[]
allCards
,
int
[]
subset
)
{
// TODO Auto-generated method stub
return
null
;
}
@Override
public
Hand
getBestHand
(
Card
[]
allCards
)
{
// TODO Auto-generated method stub
return
null
;
}
}
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