official-stockfish / books

Chess books used to develop Stockfish
155 stars 31 forks source link

Add the epd_inverter.py script #35

Closed snicolet closed 1 year ago

snicolet commented 1 year ago

Script by Shahin M. Shahin (peregrine) to reverse all FENs in an epd file, switching the side to move from White to Move and vice-versa.

This allows us, for example, to easily create a book with most positions with a Black bias (starting from a book with most positions with a White bias).

Usage : python epd_inverter.py <INPUT_FILE.epd> <OUTPUT_FILE.epd>