Last change
on this file since 3 was 1, checked in by Wouter Pasman, 7 years ago |
Initial import : Genius 9.0.0
|
File size:
469 bytes
|
Line | |
---|
1 | package parties.in4010.q12015.group13;
|
---|
2 |
|
---|
3 | import genius.core.Bid;
|
---|
4 | import genius.core.Domain;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Frequency model which ignores bids that are equal to the last bid
|
---|
8 | */
|
---|
9 | public class BetterFOM extends FrequencyOpponentModel {
|
---|
10 |
|
---|
11 | public BetterFOM(Domain domain, double n) {
|
---|
12 | super(domain, n);
|
---|
13 | }
|
---|
14 |
|
---|
15 | @Override
|
---|
16 | public void addBid(Bid b) throws Exception {
|
---|
17 | if (getPreviousBid() == null || !b.equals(getPreviousBid())) {
|
---|
18 | super.addBid(b);
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.