@ECHO off

rem File kindly provided by Adam Hair (http://adamsccpages.blogspot.com/).
rem and modified by Guenther Simon for GURL-2/GURL-3.
rem
rem This example runs ordo.exe -a (replace this with an Elo rating for the 
rem reference engine) -A"(enter name of reference engine)" -W -p (input PGN)  
rem -o rating.txt. If you want the ratings to be in a format that is easy to 
rem import to a spread sheet, use '-c' instead of '-o' and use a .csv file 
rem extension (instead of .txt).
rem 
rem Make sure the batch file and Ordo are in the same folder as the input PGN.
rem For the huge 7.7 mio games file I only used 10 simulation '-s' cycles, better
rem would be 100 or even 200, but I only had one free cpu, which calculated already
rem one hour on it! (The simulations are needed for calculating the error margin,
rem more informations about this in the ordo manual.)
 
rem ordo.exe -U "0,1,2,3,4,5" -G -a 2700 -A "Fruit 21" -W -D -p newprep.pgn -c newprep.csv
ordo.exe -U "0,1,2,3,4,5" -s10 -n2 -a 2700 -A "Fruit 21" -W -D -p gurl3.pgn -c gurl3.csv
pause

C:\UltraEdit\uedit32.exe gurl3.csv
rem open results with ultraedit - change this to your like

rem By double clicking on this batch file, you will cause Ordo to compute the 
rem ratings from the game results contained in results.pgn. A console window 
rem will appear (black screen, white text), and you will see Ordo's progress. 
rem The ratings will be outputted to a csv file called gurl3.csv. Fruit 2.1 
rem will be the reference engine, and its rating is set at 2700. The ratings 
rem of the other engines are relative to the rating assigned to Fruit 2.1. Any 
rem engine in this or any other PGN can be used as the reference, and it can 
rem be assigned any numeric rating value. Additional information can be found 
rem in the readme.txt file that comes with Ordo. 
rem 
rem To create your own batch file, use a text editor such as NotePad, UltraEdit, 
rem NotePad++, etc... Create a new file, type in the appropriate commands in 
rem the appropriate format (as seen above), choose save as (enter your file 
rem name).bat, and save type as 'All Files' or 'Batch' (depending on the text 
rem editor). One tip: To prevent the console window from automatically 
rem closing, type 'pause' on a second line. This can be useful if there is a 
rem problem with the batch file. It gives you a chance to see the error 
rem message.
