ScrZebra is an abbreviation of SCRiptable endgame solver ZEBRA. It is a standalone program which runs in a command window under Windows 95/98/ME/NT/2000/XP or Linux and solves a list of positions WLD or for exact score. The same endgame solver as in WZebra is used.
The Othello endgame script format was devised by Raphael Schreiber , Stéphane Nicolet and myself and is as follows:
As an example, consider the following minimalistic example file:
% Here's a bunch of lopsided positions XO---XXX-OOO-OOO-OOOOOO---OOXO---OOXOOO-OOXOOOOOXXXXX---XXXXXX-- X % Comment for position 1 OOOOOOOOOOOOOOOXOXOXXXX-OOOOXX-OOOOOXX--OOXXO---OX--XO--X------- X % Do close positions exist in Othello? XXOOOOOO-XXXXX-O-XXXXXXOOXOOXXOXOOXOXOXXOXOOOO--O-XO------------ X % Comment for position 3 ---O-----OOOO---XO-OOO--XOOOOO-XXOXXXOO-XOOXXOOOOOXOXXO-OXOOOOO- X -----------------------O--OOOOO---OOOOOXOOOOXXXX--XXOOXX--XX-O-X X --XXXXX---XXXX---OOOXX---OOXXXX--OOXXXO-OOOOXOO----XOX----XXXXX- O % Ah! This one is closer. % End of the endgame script
The action taken by the program when given an input file in the above format is as follows:
Four possible outputs corresponding to the input above are:
% Here's a bunch of lopsided positions 63 - 1 % Comment for position 1 4 - 60 % Do close positions exist in Othello? 14 - 50 % Comment for position 3 49 - 15 64 - 0 35 - 29 % Ah! This one is closer. % End of the endgame script
% Here's a bunch of lopsided positions 63 - 1 b4 a5 a4 a3 h3 -- a2 -- h5 h4 e1 c1 g4 % Comment for position 1 4 - 60 f6 h3 f8 b8 c8 g4 -- g5 -- c7 % Do close positions exist in Othello? 14 - 50 d8 h6 b7 g2 e7 a8 g7 g6 f7 b8 c8 % Comment for position 3 49 - 15 b1 a2 c3 -- h8 h7 f1 f2 64 - 0 g8 e8 h4 b7 g3 b8 h2 -- f3 f2 a8 -- a7 -- a5 -- f1 g2 e2 d2 d1 -- c2 b2 b5 b4 e1 -- h1 35 - 29 g2 h1 c2 g1 f1 d2 b2 a2 b6 c6 b5 % Ah! This one is closer. % End of the endgame script
% Here's a bunch of lopsided positions Black win % Comment for position 1 White win % Do close positions exist in Othello? White win % Comment for position 3 Black win Black win Black win % Ah! This one is closer. % End of the endgame script
(Note the semi-optimal line containing sub-optimal moves for position 4.)
% Here's a bunch of lopsided positions Black win b4 % Comment for position 1 White win f6 h3 f8 % Do close positions exist in Othello? White win d8 h6 b7 % Comment for position 3 Black win g2 f2 b1 c3 g3 a2 h8 h7 h5 h1 f1 g4 g1 e1 a1 c1 -- h2 h3 Black win g8 e8 h4 Black win g2 % Ah! This one is closer. % End of the endgame script
To run scrZebra, download the Windows or Linux archive below and unpack it into a directory which contains the file coeffs2.bin which you either can download separately here or copy from the WZebra directory if you already have downloaded WZebra 2.0 or higher from this page.
| Name | Size | Last changed | Contents |
|---|---|---|---|
| scrz.zip | 165kB | October 2, 2006 | Windows |
| scrzl.tar.gz | 320kB | January 3, 2003 | Linux |
The archive contains the following files:
| Name | Contents |
|---|---|
| scrzebra.exe | The solver. |
| ffotest.scr | Script file for the FFO test. |
Note: The latest scrZebra uses MMX instructions and hence does not run on the oldest Pentium processors.
scrZebra is run from a command window and the syntax is as follows:
scrzebra [-e <echo output?>]
[-h <hash size>]
[-wld <wld only>]
[-line <store line?>]
[-b <use opening book?>]
-script <input script> <output file>
The basic mode of operation, solving a set of positions for exact score,
can be performed as follows:
scrzebra -script mygames.scr mygames.out
The command-line options can be given in any order and are interpreted as follows:
Legal stuff
The program is freeware and may be copied freely as long as no modifications are made. It may not be used for any commercial purposes without the explicit consent of its creator.
Last modified October 2, 2006 by Gunnar Andersson
gunnar@radagast.se