source: src/main/java/agents/anac/y2019/harddealer/SortBids.java

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 
1package agents.anac.y2019.harddealer;
2
3import java.util.Comparator;
4
5import genius.core.bidding.BidDetails;
6
7public 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.