permutationlock / merge-pgn

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%