source:
ai2020/group6/NoOptInStrategy.java@
3
Last change on this file since 3 was 3, checked in by , 4 years ago | |
---|---|
File size: 383 bytes |
Line | |
---|---|
1 | package ai2020.group6; |
2 | |
3 | import java.util.List; |
4 | |
5 | import geniusweb.actions.Action; |
6 | import geniusweb.actions.Votes; |
7 | |
8 | public class NoOptInStrategy implements IOptInStrategy { |
9 | |
10 | @Override |
11 | public Votes optInVote ( MAState state, List<Votes> votes ) { |
12 | Action action = state.getLastAction(); |
13 | if (action instanceof Votes) |
14 | return (Votes) action; |
15 | return null; |
16 | } |
17 | |
18 | } |
Note:
See TracBrowser
for help on using the repository browser.