We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95803fc commit 474c87bCopy full SHA for 474c87b
test.py
@@ -703,6 +703,11 @@ def test_san(self):
703
self.assertEqual(board.san(chess.Move.from_uci("h4g6")), "Nh4g6")
704
self.assertEqual(board.fen(), fen)
705
706
+ # Test a bug where shakmaty used overly specific disambiguation.
707
+ fen = "8/2KN1p2/5p2/3N1B1k/5PNp/7P/7P/8 w - -"
708
+ board = chess.Board(fen)
709
+ self.assertEqual(board.san(chess.Move.from_uci("d5f6")), "N5xf6#")
710
+
711
# Do not disambiguate illegal alternatives.
712
fen = "8/8/8/R2nkn2/8/8/2K5/8 b - - 0 1"
713
board = chess.Board(fen)
0 commit comments