Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
makeMove
Method · 0.95
heuristic
Method · 0.95
isDraw
Method · 0.95
postMoveUpdates
Method · 0.95
lookForChecks
Method · 0.95
filterIllegalMoves
Method · 0.95
castlingMoves
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected