@Test public void equalStrategyTies() throws Exception { Round r = new Round(ALWAYS_0_BEATS_1, ALWAYS_PLAYS_1, ALWAYS_PLAYS_1); r.play((w, wst, wsc, l, lst, lsc) -> fail(), (st1, st2, sc) -> {}); }
@Test public void player2wins() throws Exception { Round r = new Round(ALWAYS_0_BEATS_1, ALWAYS_PLAYS_1, ALWAYS_PLAYS_0); r.play((w, wst, wsc, l, lst, lsc) -> assertSame(w, ALWAYS_PLAYS_0), (st1, st2, sc) -> fail()); }