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

Method get

src/main/java/commons/Piece.java:32–34  ·  view source on GitHub ↗
(Color color, Cell position, PieceType pieceType)

Source from the content-addressed store, hash-verified

30 }
31
32 public static Piece get(Color color, Cell position, PieceType pieceType) {
33 return pieces[color.ordinal()][(position.row << 3) + position.col][pieceType.ordinal()];
34 }
35
36 private Piece(Color color, Cell position, PieceType pieceType) {
37 this.color = color;

Callers 9

canCaptureEnPassantMethod · 0.95
placePawnMethod · 0.95
placeRookMethod · 0.95
placeBishopMethod · 0.95
placeQueenMethod · 0.95
placeKingMethod · 0.95
placeKnightMethod · 0.95
moveOrPromoteMethod · 0.95
getBoardMethod · 0.95

Calls

no outgoing calls

Tested by 1

canCaptureEnPassantMethod · 0.76