Skip to content

A simple tool to merge several chess games stored in pgn files into a single game with all lines included as variations. Useful for creating pgns for opening trainers such as ChessTempo.

License

Notifications You must be signed in to change notification settings

permutationlock/merge-pgn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Merge-PGN

A simple tool for merging several pgn games into a single pgn with one game including all moves as variations. All headers and comments are ignored as this is designed only to manipulate the move lines.

Requires you to have python-chess installed.

pip install python-chess

I needed this tool to construct pgn files to upload to ChessTempo's opening trainer.

Example:

python merge-pgn.py "game1.pgn" "game2.pgn" "games3-7.pgn" > "all_games.pgn"

About

A simple tool to merge several chess games stored in pgn files into a single game with all lines included as variations. Useful for creating pgns for opening trainers such as ChessTempo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages