Skip to content

Check evasion mask (check_mask) #58

@Hardcode3

Description

@Hardcode3

🎯 Goal

Restrict legal moves while in check.

🧠 Key Idea

Situation check_mask
No check FULL
Non-sliding check Checker square
Sliding check Ray king <-> checker
Double check EMPTY

🛠️ Tasks

  • Implement ray_between(a, b)
  • Identify checker type
  • Build check_mask

✅ Acceptance Criteria

  • Only moves that resolve check are generated
  • No illegal evasions allowed

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