alternative using a config file, enabling free/easy setting of side to play, thinking time and book score margin:
1) Create a CrayBlitz.ini file including:
Code: Select all
; Color to play: set either White or Black
White
; Set time (st=seconds) and opening book score margin (so=millipawns)
; short format is: st=x (time only, book score margin left to 100 by default)
; long format is: st=x\nso=y (keep \n as the separator)
st=10\nso=450
such as: InBetween.White1.ini
Code: Select all
[InBetween]
CommandLine := cray-blitz.exe
Log := inbetween.log
[Client2Server]
xboard := xboard\nn\ny
quit := end
hard :=
Code: Select all
e8g8 := o-o\ne8g8
e8c8 := o-o-o\ne8c8
1q := 1=Q
.... (till end, truncated here for display convenience)
Use the above ini files names, otherwise adapt the below commands.
Use this cmd file as the WB engine:
Code: Select all
@echo off
set color=
for /f "delims=" %%a in (CrayBlitz.ini) do (if not defined color set color=%%a)
for /f "delims=" %%a in (CrayBlitz.ini) do set st_so=%%a
copy InBetween.%color%1.ini InBetween.ini
echo %st_so%>>InBetween.ini
type InBetween.%color%2.ini>>InBetween.ini
del axboard bxboard xboard inbetween.log
echo 0.000: *** CrayBlitz plays %color% ***>inbetween.log
echo 0.000: *** time (st) and opening book score margin (so) are set to: %st_so% ***>>inbetween.log
start powershell get-content inbetween.log -wait
InBetween
GUIs such as Arena offer a straightforward access to the WB config file; either to set or check the values.
Sample output using the above CrayBlitz.ini setting:
Code: Select all
0.000: *** CrayBlitz plays White ***
0.000: *** time (st) and opening book score margin (so) are set to: st=10\nso=450 ***
0.000: - Starting server: cray-blitz.exe
...
0.734: > hard
0.734: < your move, xboard
0.734: < absolute time per move is 0:10.
0.734: < your move, xboard
0.734: < book score margin is 450.
0.734: < your move, xboard
...
1.828: < my move 1. d4
Tibono