MCPcopy Index your code
hub / github.com/coding-parrot/chess-engine / opponent

Method opponent

src/main/java/commons/Color.java:6–8  ·  view source on GitHub ↗
(Color playerToMove)

Source from the content-addressed store, hash-verified

4 WHITE, BLACK;
5
6 public static Color opponent(Color playerToMove) {
7 return playerToMove == BLACK ? WHITE : BLACK;
8 }
9}

Callers 7

makeMoveMethod · 0.95
heuristicMethod · 0.95
isDrawMethod · 0.95
postMoveUpdatesMethod · 0.95
lookForChecksMethod · 0.95
filterIllegalMovesMethod · 0.95
castlingMovesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected