Skip to content

Legal king moves #60

@Hardcode3

Description

@Hardcode3

🎯 Goal

Generate only safe king moves.

🧠 Key Idea

The king may never move to an attacked square.

🛠️ Tasks

  • Generate king_attacks
  • Remove:
    • own pieces
    • enemy-attacked squares
  • Handle king in check

✅ Acceptance Criteria

  • King never moves into check
  • Works under check and double check

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