From 8847382070acf93a4f76110146e2d31e6b962656 Mon Sep 17 00:00:00 2001 From: VincentAURIAU Date: Sat, 25 Nov 2023 22:06:55 +0100 Subject: [PATCH] FIX: PGN notation for kinside castling --- pyalapin/engine/move.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyalapin/engine/move.py b/pyalapin/engine/move.py index f9499cb..ae57236 100644 --- a/pyalapin/engine/move.py +++ b/pyalapin/engine/move.py @@ -130,6 +130,11 @@ def to_pgn(self): piece = "O-O-O" start = "" end = "" + else: + piece = "O-O" + start = "" + end = "" + king = ( self.board.white_king if not self.player.white_side