8000 Stalemate != checkmate · Issue #3 · carlini/regex-chess · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Stalemate != checkmate #3

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 G 8000 itHub”, 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

Open
daniel-ziegler opened this issue Jan 9, 2025 · 1 comment
Open

Stalemate != checkmate #3

daniel-ziegler opened this issue Jan 9, 2025 · 1 comment

Comments

@daniel-ziegler
Copy link

I took almost all of the opponent's pieces (except for one pawn and the king) and then made a random move that didn't put its king in check - yet in response the game said "Checkmate! You win". I think the opponent may not have had any valid moves, which presumably triggered the checkmate detector, but this should have counted as a stalemate.

@carlini
Copy link
Owner
carlini commented Jan 9, 2025

Well that's dedication!

Uh. You're actually right, it completely slipped my mind to test for this... I should be able to fix this fairly easily, but it'll take a bit of shuffling things around.

(Note to future self: the correct order is (1) delete all invalid next moves (2) report checkmate if in check and only one board left (3) report stalemate if only one board left and not in check, (4) delete the board where the pieces didn't move, (5) run the argmax board selection algorithm.)

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
0