IOKernel / Sangatsu

A barebone chess.com cheat
3 stars 5 forks source link

Parse Error #9

Closed naterfute closed 1 year ago

naterfute commented 1 year ago

Im running Fedora 37

Traceback (most recent call last): File "/home/kaleb/coding/python/chess/Sangatsu/sangatsu.py", line 24, in main() File "/home/kaleb/coding/python/chess/Sangatsu/sangatsu.py", line 18, in main gm.play_game(driver, engine) File "/home/kaleb/coding/python/chess/Sangatsu/utils/game.py", line 54, in play_game board.push_san(move) File "/home/kaleb/coding/python/chess/Sangatsu/chess/lib64/python3.10/site-packages/chess/init.py", line 3052, in push_san move = self.parse_san(san) File "/home/kaleb/coding/python/chess/Sangatsu/chess/lib64/python3.10/site-packages/chess/init.py", line 3039, in parse_san raise ValueError(f"illegal san: {san!r} in {self.fen()}") ValueError: illegal san: 'b4' in rnbqkbnr/pp1p2pp/2p2p2/4p3/3PP3/2P2P2/PP4PP/RNBQKBNR b KQkq - 0 4

IOKernel commented 1 year ago

Try changing the piece notation from images to text in chess.com settings

On Tue, Dec 13, 2022, 14:50 Kaleb Schmidlkofer @.***> wrote:

Traceback (most recent call last): File "/home/kaleb/coding/python/chess/Sangatsu/sangatsu.py", line 24, in main() File "/home/kaleb/coding/python/chess/Sangatsu/sangatsu.py", line 18, in main gm.play_game(driver, engine) File "/home/kaleb/coding/python/chess/Sangatsu/utils/game.py", line 54, in play_game board.push_san(move) File "/home/kaleb/coding/python/chess/Sangatsu/chess/lib64/python3.10/site-packages/chess/ init.py", line 3052, in push_san move = self.parse_san(san) File "/home/kaleb/coding/python/chess/Sangatsu/chess/lib64/python3.10/site-packages/chess/ init.py", line 3039, in parse_san raise ValueError(f"illegal san: {san!r} in {self.fen()}") ValueError: illegal san: 'b4' in rnbqkbnr/pp1p2pp/2p2p2/4p3/3PP3/2P2P2/PP4PP/RNBQKBNR b KQkq - 0 4

— Reply to this email directly, view it on GitHub https://github.com/IOKernel/Sangatsu/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMTQ62TKZOFEFIITAOINVDWNBIF3ANCNFSM6AAAAAAS5BUX2E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

naterfute commented 1 year ago

That Fixed it Thank you