Skip to content

Pin detection (compute_pins) #59

@Hardcode3

Description

@Hardcode3

🎯 Goal

Prevent pieces from exposing their king.

🧠 Key Idea

X-ray scanning from the king along sliding directions.

🛠️ Tasks

  • Scan 8 directions from the king
  • Detect:
    • first friendly piece
    • second enemy sliding piece
  • Populate:
    • Bitboard pinned
    • Bitboard pin_ray[64]

✅ Acceptance Criteria

  • Handles bishop, rook, pawn pins
  • Pinned pieces are restricted correctly

Metadata

Metadata

Assignees

Labels

featImplementation of a new featuremove-generationChess moves generation (legal, pseudo-legal).testingAdding, updating or removing any kind of tests.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions