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

Szach #27

Open
CaptainObjective opened this issue Jan 31, 2021 · 0 comments
Open

Szach #27

CaptainObjective opened this issue Jan 31, 2021 · 0 comments
Assignees

Comments

@CaptainObjective
Copy link
Collaborator

Zaimplementować logikę sprawdzającą czy król nie jest w szachu. Ta logika będzie do wykorzystania w ramach

  • findLegalMoves (przed ruchem) w GameEngine (z tablicy ruchów należy usunąć wszystkie które wprowadzają mojego króla w szacha)
  • po wykonaniu posunięcia, jeżeli doszło szacha musimy o tym pamiętać i modyfikować findLegalMoves gracza szachowanego tak by były tam dostępne jedynie ruchy które wychodzą z szacha
  • roszada też pewnie to wykorzysta ale to już się zepnie w osobnym tasku.

Wskazówka: można zrobić ruch na 'próbę' i sprawdzać wtedy stan szachownicy czy król nie jest pod biciem

@asiaziola asiaziola self-assigned this Feb 1, 2021
asiaziola added a commit that referenced this issue Feb 12, 2021
asiaziola added a commit that referenced this issue Feb 12, 2021
asiaziola added a commit that referenced this issue Feb 12, 2021
asiaziola added a commit that referenced this issue Feb 12, 2021
asiaziola added a commit that referenced this issue Feb 12, 2021
asiaziola added a commit that referenced this issue Feb 13, 2021
asiaziola added a commit that referenced this issue Feb 14, 2021
* [#27] check

* check - tests

* review fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants