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

Method heuristic

src/main/java/game/Board.java:689–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

687 }
688
689 private int heuristic() {
690 return playerPieces.get(playerToMove).stream().mapToInt(piece -> approxValue.get(piece.pieceType)).sum()
691 - playerPieces.get(Color.opponent(playerToMove)).stream().mapToInt(piece -> approxValue.get(piece.pieceType)).sum();
692 }
693
694 public boolean isDraw() {
695 if (isThreeFoldRepetition || fiftyMoveDraw) {

Callers 1

evaluationMethod · 0.95

Calls 2

opponentMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected