source: ai2020/group6/NoOptInStrategy.java@ 5

Last change on this file since 5 was 3, checked in by wouter, 4 years ago

#1925 added group6 code.

File size: 383 bytes
RevLine 
[3]1package ai2020.group6;
2
3import java.util.List;
4
5import geniusweb.actions.Action;
6import geniusweb.actions.Votes;
7
8public 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.