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

Relax "impossible position" errors in edit mode #24

Open
cosinekitty opened this issue Apr 22, 2018 · 2 comments
Open

Relax "impossible position" errors in edit mode #24

cosinekitty opened this issue Apr 22, 2018 · 2 comments
Assignees

Comments

@cosinekitty
Copy link
Owner

When in edit mode, allow more relaxed editing of position until edit mode is exited. Do not allow exiting edit mode until the position is legal.

@cosinekitty
Copy link
Owner Author

Also, now clearing the board causes the game to end in a tie, and you are not allowed to start editing the board!

@cosinekitty
Copy link
Owner Author

cosinekitty commented Apr 30, 2018

Ideas:

  • Disable "Clear the Board" command unless in edit mode.

  • When in edit mode, disable all attempts to generate legal moves, check for end of game, etc. Consider entering a deeper function in Win32_gui::ReadMove() instead of adding special case logic everywhere else.

  • Do not allow leaving edit mode if the position is impossible.

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

1 participant