- assertWinLose(agent(1,2,2,2,8),
- agent(3,1,1,1,8));
+ assertWinLose(agent(1,2,2,2,8), agent(3,1,1,1,8));
+ }
+
+ @Test
+ public void cheatingGames() {
+ // win by cheating (works in league 1, which is the default)
+ assertWinLose(agentCheat, agentTwo);
+
+ // league 2 randomizes: we should be able to get a win and a loss
+ branch().setLeague(2).setSeed(0).assertWinLose(agentCheat, agentTwo);
+ branch().setLeague(2).setSeed(1).assertWinLose(agentTwo, agentCheat);