Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement en-peasant and casteling tracking in GameState #7

Open
Goju-Ryu opened this issue Nov 18, 2021 · 0 comments
Open

Implement en-peasant and casteling tracking in GameState #7

Goju-Ryu opened this issue Nov 18, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Goju-Ryu
Copy link
Owner

Description
Implement a way for the GameState to keep track of the legality of castling and if en-peasant is an option

Suggestions

  • use two boolean values in state to track legality of castling to either side and let ApplyMove change these as rules dictate.
  • remember the last move performed to enable en-peasant check.
    • have delegate to check if any en-peasant is possible
    • let the last move be public so move generators can look up which piece is eligible for the move
@Goju-Ryu Goju-Ryu added the enhancement New feature or request label Nov 18, 2021
@Goju-Ryu Goju-Ryu self-assigned this Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant