-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
hacktoberfestCounts towards HacktoberfestCounts towards Hacktoberfest
Description
So far, the game logic / rules of chess are not yet fully implemented.
I think it would help to have one place to track all rule violations that have been found so far, because not all of them are obvious and (at least for now) it can be hard to reproduce them.
All the illegal moves that I could produce so far:
- King not moving out of check.
1b. King moving into check.
1c. King can be captured. (Should be solved if 1 and 1b are handled properly.) - Pawns not promoting. (You can input a move such as
e8=Q, but the parser just ignores everything from the=on. The pawn will move to e8 and stay there as a pawn. Further moves with this piece will not be accepted.) - Stalemate not recognised. (If human is stalemated, the game still asks for a move; if computer is stalemated, game crashes (due to timeout?).)
- "Ambiguous moves" not handled properly. (E. g. I had a case where 2 different knights could go to h2, yet the game accepted my move
Nh2and just chose one of them - correct behaviour would be to reject the move.) - Castling accepted after rook has moved. (E. g. I played
Rh2, laterRh1, later0-0.) - En-passant captures are not accepted. (At least not the notations
hxg6andhxg6e.p.orfxg6 e.p.- it's hard to get into situations where you have this move available :p )
Metadata
Metadata
Assignees
Labels
hacktoberfestCounts towards HacktoberfestCounts towards Hacktoberfest