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).
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>