A. Name
Game Extractor v1.3

A.1 Date released
2017-03-12

B. Description
Extract games based on criteria.txt file and user specified analyzing engine.

B.1 New in v1.3
* Rename output files, would start with underscore '_'
* Count number of games and fen in output files


C. Required files
* pgn-extract.exe
* criteria.txt
* your ref pgn file
* your ref epd file

D. Notes
Open criteria.txt (part of the pack) to define your ref epd and pgn files as well
as your choice of engine score and number of queens.

E. Q and A
How to run?
Just double-click gameExtractor-v1.3.exe. 

F. Tests
This program is tested under windows 7.

G. Files included in this pack
* gameExtractor-v1.3.exe
* criteria.txt
* readme.txt

H. Important files not included in this pack
* pgn-extract.exe, download it from its official site
* your ref pgn and epd files, you may use Frank's pgn and epd files with analysis.

I. An example contents of criteria.txt

start
refepd, engine-analysis.epd
refpgn, beta-v03.pgn
minscorecp, -40
maxscorecp, +65
mincntqueen, 0
maxcntqueen, 2
end

J. An example run of the program

Game Extractor v1.3

File: criteria.txt

start
refepd, engine-analysis.epd
refpgn, beta-v03.pgn
minscorecp, -40
maxscorecp, +65
mincntqueen, 0
maxcntqueen, 2
end

Available analyzing engines in ref epd:
[0]
[1] Houdini 5.01 Pro x64
[2] Shredder 13 x64

Enter number of analyzing engine, 0 to ignore? 0

(1) Filtering FEN based on criteria.txt ...
elapsed: 10.1s

(2) Extracting unique games based from filtered FEN and extracting non-unique games from unfiltered FEN using pgn-extract ...
elapsed: 3.3s

(3) Extracting unique games from unfiltered pgn file using pgn-extract ...
elapsed: 1.0s

(4) Extracting non-unique games based from filtered FEN using pgn-extract ...
elapsed: 3.2s

(5) Deleting temp file fenTag.txt ...

Output files:
_in_criteria_unique_beta-v03.pgn (games = 25472)
_in_criteria_not_unique_beta-v03.pgn (games = 80626)
_not_in_criteria_unique_beta-v03.pgn (games = 12461)
_not_in_criteria_not_unique_beta-v03.pgn (games = 56491)
_in_criteria_engine-analysis.epd (positions = 25308)
_not_in_criteria_engine-analysis.epd (positions = 838)


Done!!

Press enter key to exit
