Skip to content

Commit

Permalink
Merge pull request #61 from VincentAuriau/pgn
Browse files Browse the repository at this point in the history
FIX: PGN notation for kingside castling
  • Loading branch information
VincentAuriau authored Dec 29, 2023
2 parents 216072f + 8847382 commit 622d2cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyalapin/engine/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 622d2cb

Please sign in to comment.