Last change
on this file was 200, checked in by Katsuhide Fujita, 5 years ago |
Add ANAC 2019 agents
|
-
Property svn:executable
set to
*
|
File size:
471 bytes
|
Line | |
---|
1 | package agents.anac.y2019.harddealer;
|
---|
2 |
|
---|
3 | import java.util.Comparator;
|
---|
4 |
|
---|
5 | import genius.core.bidding.BidDetails;
|
---|
6 |
|
---|
7 | public class SortBids extends HardDealer_OMS implements Comparator<BidDetails> {
|
---|
8 | public int compare(BidDetails a, BidDetails b)
|
---|
9 | {
|
---|
10 | if (a.getMyUndiscountedUtil() - b.getMyUndiscountedUtil() < 0)
|
---|
11 | {
|
---|
12 | return -1;
|
---|
13 | } else if (a.getMyUndiscountedUtil() == b.getMyUndiscountedUtil())
|
---|
14 | {
|
---|
15 | return 0;
|
---|
16 | }
|
---|
17 | else
|
---|
18 | {
|
---|
19 | return 1;
|
---|
20 | }
|
---|
21 |
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.