MCPcopy Create free account
hub / github.com/algorithmzuo/videocode / winner2

Method winner2

src/videocode/Code04_EatGrass.java:41–47  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

39 }
40
41 public static String winner2(int n) {
42 if (n % 5 == 0 || n % 5 == 2) {
43 return "后手";
44 } else {
45 return "先手";
46 }
47 }
48
49 public static void main(String[] args) {
50 for (int i = 0; i <= 50; i++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected