MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / play

Method play

enums/RoShamBo.java:15–20  ·  view source on GitHub ↗
(Class<T> rsbClass, int size)

Source from the content-addressed store, hash-verified

13 a + " vs. " + b + ": " + a.compete(b));
14 }
15 public static <T extends Enum<T> & Competitor<T>>
16 void play(Class<T> rsbClass, int size) {
17 for(int i = 0; i < size; i++)
18 match(
19 Enums.random(rsbClass),Enums.random(rsbClass));
20 }
21}

Callers 5

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Calls 2

matchMethod · 0.95
randomMethod · 0.95

Tested by

no test coverage detected