Implement pause / resume commands
[uci2wb.git] / README.txt
1                          UCI2WB relelease notes\r
2 \r
3 UCI2WB is an adapter for running USI (Shogi) engines under WinBoard.\r
4 Install USI2WB in WinBoard as if it was the engine, with one or two arguments\r
5 on its command line, to indicate the name of the real engine executable,\r
6 and (optionally) its working directory. \r
7 \r
8 E.g. when you have placed USI2WB.exe in a sub-folder 'Adapters' inside the WinBoard folder,\r
9 you could include the following line in winboard.ini amongst the firstChessPrograms:\r
10 \r
11 "UCI2WB -s USI_ENGINE.exe ENGINE_FOLDER" /fd="./Adapters" /variant=shogi\r
12 \r
13 UCI2WB was developed with gcc under Cygwin. It can also be used as a (dumb) UCI2WB adapter. \r
14 "Dumb" here means that the adapter does not know anything about the game state, \r
15 and just passes on the moves and position FENs as it receives them from engine or GUI. \r
16 As this can be done without any knowledge of the game rules, or even of the board size, \r
17 such a dumb adapter can in principle be used for any variant. To use it for UCI protocol\r
18 (both the Chess or Xiangqi dialects), use it without the -s flag (or with a -c flag).\r
19   The general syntax of the UCI2WB command is:\r
20 \r
21 UCI2WB [debug] [-var VARIANTLIST] [-s|-c] ENGINE.exe [ENGINEFOLDER]\r
22 \r
23 Presence of the 'debug' argument causes UCI2WB to report everything it receives from the engine,\r
24 as well as the 'position' and 'go' comamnds sent to it, as debug output (prefixed with '#')\r
25 to the GUI. This has the same effect as switching the option 'UCI2WB debug output' on,\r
26 except that it forces the option to be on from the very beginning, so that the engine\r
27 startup will also be reported.\r
28   The '-var' option overrules the list of variants UCI2WB says it supports with the given list,\r
29 like 'feature variants="VARIANTLIST"'.\r
30 \r
31 \r
32 This package includes the source code. To compile on Windows under Cygwin, use the commands\r
33 \r
34 windres --use-temp-file -O coff UCI2WB.rc -o rosetta.o\r
35 gcc -O2 -s -mno-cygwin UCI2WB.c rosetta.o -o UCI2WB.exe\r
36 \r
37 To compile under Linux, use\r
38 \r
39 gcc -O2 -s UCI2WB.c -lpthread -o UCI2WB\r
40 \r
41 Have fun,\r
42 H.G.Muller\r
43 \r
44 \r
45 \r
46 \r
47 Change log:\r
48 \r
49 4/12/2012 1.10\r
50 Implement pause / resume commands\r
51 \r
52 9/5/2012\r
53 Fix bug in converting shogi moves, introduced in v1.8\r
54 \r
55 19/4/2012 1.9\r
56 Remove S-Chess move translation, to parallel change in UCUI S-Chess 'standard'\r
57 Implement WB exclude feature\r
58 \r
59 17/4/2012 1.8\r
60 Wait for uciok before processing GUI commands for setting options\r
61 Implement move translations required for variant seirawan\r
62 Make supported-variants string configurable from command line.\r
63 \r
64 15/4/2012 v1.7\r
65 Take 30ms safety margin in translating st command to movetime\r
66 \r
67 14/1/2011 v1.6\r
68 Replaced all polling by blocking synchronization (through pipes).\r
69 Implemented ping (using isready/readyok)\r
70 Made sending of debug info to GUI subject to option feature / command-line argument.\r
71 Fixed myname feature to handle names containing spaces.\r
72 \r
73 14/10/2010\r
74 Port v1.5 to Linux\r
75 \r
76 26/9/2010 v1.5\r
77 Add mini-Shogi ("variant 5x5+5_shogi") in USI mode; make coordinate translation board-size dependent.\r
78 Translate FEN in setboard to SFEN (does not fully work for holdings yet).\r
79 \r
80 23/9/2010 v1.4\r
81 Translate USI engine PV to standard coordinates (no provision for deferred promotion yet).\r
82 \r
83 ??/?/2010 v1.3\r
84 Add work-around for non-compliant USI engines that do not understand winc, binc, movestogo.\r
85 Send btime before wtime, to avoid crashing USI engines with flakey (Shogidogoro) USI support.\r
86 \r
87 1/8/2010 v1.2\r
88 Suppress mate claim on mate-in-1 score in Xiangqi (cyclone dialect),\r
89 as some engines use this score when they reach repeats they would win if continued.\r
90 \r
91 31/7/2010 v1.1\r
92 Add WB remove command\r
93 \r
94 30/7/2010 v1.0\r
95 Allow spaces in option names.\r
96 Refactor StopPonder into separate subroutine.\r
97 Refactor LoadPos into separate subroutine.\r
98 Send stop-ponder commands on exit and force.\r
99 Added icon.\r
100 \r
101 29/7/2010 v0.9\r
102 Fixed analysis, which was broken after refacoring (newline after 'go infinite')\r
103 \r
104 27/7/2010 v0.8\r
105 Refactored sendng of go command into separate routine\r
106 Send times with 'go ponder'.\r
107 Measure time spend on own move, and correct time left for it (2% safety margin).\r
108 Do adjust time left for new session or move time.\r
109 \r
110 26/7/2010 v0.7\r
111 Fix bug w.r.t. side to move on setboard.\r
112 Print version number with -v option.\r
113 \r
114 25/7/2010 v0.6\r
115 Undo implemented.\r
116 Analyze mode implemented. Seems to work for Glaurung 2.2 and Cyclone 2.1.1.\r
117 Periodic updates still use fictitious total move count of 100.\r
118 \r
119 18/7/2010 v0.5\r
120 Switching between USI and UCI is now done at run time nased on a -s flag argument\r
121 Recognize WB variant command\r
122 In Xiangqi the position keyword is omitted, and a FEN is sent even for the start pos\r
123 Recognize 'null' as best move\r
124 Recognize scores without cp\r
125 Corrrect thinking time to centi-sec\r
126 \r
127 17/7/2010 v0.4:\r
128 Introduced  compiler switch that enables some macros for everything that is different\r
129 in USI compared to UCI.\r
130 Fixed pondering.\r
131 Fixed setboard (for UCI).\r
132 Added result claims on checkmate / stalemate (for engines that say 'bestmove (none)').\r
133 \r
134 16/7/2010 v0.3:\r
135 This is the first version for which the basics seem to work.\r
136 It could play a game of Blunder against itself, ending in resign.\r
137 Options of all types should work now.\r
138 Only classical time control tested.\r
139 Pondering not tested. (Blunder does not give a ponder move?)\r
140 Setboard not tested. (Probably does not work due to FEN format discrepancy.)\r
141 No analyze mode yet.\r
142 No SMP yet.\r