Example #1
0
  @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) -> {});
  }
Example #2
0
  @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());
  }