Move generator broken

Sort:
lodjuschka
Hi folks, there seems to be a serious mistake within the move generator code that is used for the computer engine on chess.com While playing a game today against the computer on level 6 the computer made an illegal move on move 19. The engine played Ke1-c1 without castling. There was a rook on a1, but that rook had made a move before so castling long was not allowed any more. To me it appears as if the engine realized that the rook was not allowed to castle and so it fulfilled a "half-castling" by moving only the king two squares away. Here's the move list of the mentioned game - watch move 19! [Event "Computer"] [Site " Chess.com"] [Date "14.07.2019"] [White "Computer"] [Black "lodjuschka"] [Result "*"] [SetUp "1"] [FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"] [Termination "lodjuschka gewinnt durch Schachmatt"] 1. d4 d5 2. Nf3 c6 3. c4 Bf5 4. Qb3 Qb6 5. Nh4 Bxb1 6. Rxb1 Qxb3 7. axb3 e6 8. Nf3 Nf6 9. Bd2 Bd6 10. c5 Bc7 11. h4 Nbd7 12. e3 a6 13. Ra1 O-O 14. g3 Rae8 15. b4 e5 16. dxe5 Nxe5 17. Bg2 Nxf3+ 18. Bxf3 Be5 19. Kc1 Ne4 *
notmtwain
lodjuschka wrote:
Hi folks, there seems to be a serious mistake within the move generator code that is used for the computer engine on chess.com While playing a game today against the computer on level 6 the computer made an illegal move on move 19. The engine played Ke1-c1 without castling. There was a rook on a1, but that rook had made a move before so castling long was not allowed any more. To me it appears as if the engine realized that the rook was not allowed to castle and so it fulfilled a "half-castling" by moving only the king two squares away. Here's the move list of the mentioned game - watch move 19! [Event "Computer"] [Site " Chess.com"] [Date "14.07.2019"] [White "Computer"] [Black "lodjuschka"] [Result "*"] [SetUp "1"] [FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"] [Termination "lodjuschka gewinnt durch Schachmatt"] 1. d4 d5 2. Nf3 c6 3. c4 Bf5 4. Qb3 Qb6 5. Nh4 Bxb1 6. Rxb1 Qxb3 7. axb3 e6 8. Nf3 Nf6 9. Bd2 Bd6 10. c5 Bc7 11. h4 Nbd7 12. e3 a6 13. Ra1 O-O 14. g3 Rae8 15. b4 e5 16. dxe5 Nxe5 17. Bg2 Nxf3+ 18. Bxf3 Be5 19. Kc1 Ne4 *

Send your bug report to support@chess.com.

lodjuschka

lodjuschka schrieb:

Hi folks, there seems to be a serious mistake within the move generator code that is used for the computer engine on chess.com While playing a game today against the computer on level 6 the computer made an illegal move on move 19. The engine played Ke1-c1 without castling. There was a rook on a1, but that rook had made a move before so castling long was not allowed any more. To me it appears as if the engine realized that the rook was not allowed to castle and so it fulfilled a "half-castling" by moving only the king two squares away. Here's the move list of the mentioned game - watch move 19! [Event "Computer"] [Site " Chess.com"] [Date "14.07.2019"] [White "Computer"] [Black "lodjuschka"] [Result "*"] [SetUp "1"] [FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"] [Termination "lodjuschka gewinnt durch Schachmatt"] 1. d4 d5 2. Nf3 c6 3. c4 Bf5 4. Qb3 Qb6 5. Nh4 Bxb1 6. Rxb1 Qxb3 7. axb3 e6 8. Nf3 Nf6 9. Bd2 Bd6 10. c5 Bc7 11. h4 Nbd7 12. e3 a6 13. Ra1 O-O 14. g3 Rae8 15. b4 e5 16. dxe5 Nxe5 17. Bg2 Nxf3+ 18. Bxf3 Be5 19. Kc1 Ne4 *

lodjuschka schrieb: Hi folks, there seems to be a serious mistake within the move generator code that is used for the computer engine on chess.com While playing a game today against the computer on level 6 the computer made an illegal move on move 19. The engine played Ke1-c1 without castling. There was a rook on a1, but that rook had made a move before so castling long was not allowed any more. To me it appears as if the engine realized that the rook was not allowed to castle and so it fulfilled a "half-castling" by moving only the king two squares away. Here's the move list of the mentioned game - watch move 19! [Event "Computer"] [Site " Chess.com"] [Date "14.07.2019"] [White "Computer"] [Black "lodjuschka"] [Result "*"] [SetUp "1"] [FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"] [Termination "lodjuschka gewinnt durch Schachmatt"] 1. d4 d5 2. Nf3 c6 3. c4 Bf5 4. Qb3 Qb6 5. Nh4 Bxb1 6. Rxb1 Qxb3 7. axb3 e6 8. Nf3 Nf6 9. Bd2 Bd6 10. c5 Bc7 11. h4 Nbd7 12. e3 a6 13. Ra1 O-O 14. g3 Rae8 15. b4 e5 16. dxe5 Nxe5 17. Bg2 Nxf3+ 18. Bxf3 Be5 19. Kc1 Ne4 *