Skip to content

Commit 271c851

Browse files
authored
Merge pull request #90 from gonmf/develop
Develop
2 parents ada4dd0 + be17b91 commit 271c851

27 files changed

Lines changed: 12728 additions & 11195 deletions

GTP_README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ Arguments: time available to think (per turn), in seconds
9292
Fails: never
9393

9494

95+
mtld-time_left -- exactly the same as the standard time_left command, except for
96+
the time being specified in milliseconds instead of seconds.
97+
Arguments: player color, number of milliseconds remaining in the current period,
98+
number of stones for the current period, or 0 if currently in main time
99+
Fails: syntax error
100+
101+
95102
exit -- alias to quit command.
96103
Arguments: none
97104
Fails: never

src/analysis.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,49 +151,49 @@ void request_opinion(
151151
{
152152
dst += snprintf(dst, MAX_PAGE_SIZ, "%s is winning the game.\n", is_black
153153
? "Black" : "White");
154-
goto continue_lbl;
154+
goto lbl_finally;
155155
}
156156

157157
if(best_plays[0]->mc_q > 0.55)
158158
{
159159
dst += snprintf(dst, MAX_PAGE_SIZ, "%s is ahead in the game.\n",
160160
is_black ? "Black" : "White");
161-
goto continue_lbl;
161+
goto lbl_finally;
162162
}
163163

164164
if(best_plays[0]->mc_q > 0.5)
165165
{
166166
dst += snprintf(dst, MAX_PAGE_SIZ,
167167
"The players are very close, but %s has the advantage.\n", is_black
168168
? "black" : "white");
169-
goto continue_lbl;
169+
goto lbl_finally;
170170
}
171171

172172
if(best_plays[0]->mc_q > 0.45)
173173
{
174174
dst += snprintf(dst, MAX_PAGE_SIZ, "The players are very close.\n");
175-
goto continue_lbl;
175+
goto lbl_finally;
176176
}
177177

178178
if(best_plays[0]->mc_q > 0.4)
179179
{
180180
dst += snprintf(dst, MAX_PAGE_SIZ, "%s is ahead in the game.\n",
181181
!is_black ? "Black" : "White");
182-
goto continue_lbl;
182+
goto lbl_finally;
183183
}
184184

185185
if(best_plays[0]->mc_q > 0.3)
186186
{
187187
dst += snprintf(dst, MAX_PAGE_SIZ, "%s is winning the game.\n",
188188
!is_black ? "Black" : "White");
189-
goto continue_lbl;
189+
goto lbl_finally;
190190
}
191191

192192
dst += snprintf(dst, MAX_PAGE_SIZ, "%s has won the game.\n", !is_black ?
193193
"Black" : "White");
194194
return;
195195

196-
continue_lbl: ;
196+
lbl_finally: ;
197197

198198
double q = best_plays[0]->mc_q;
199199
for(u8 i = 1; i < play_count; ++i)

src/constants.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,4 @@ void board_constants_init()
248248
init_moves_by_distance(nei_dst_4, 4, false);
249249

250250
init_eye_table();
251-
252-
flog_info("cons", "board constants calculated");
253251
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This opening book was created by seeing the most common plays in GNU Go 3.8
2-
# self-play. It is probably very poor.
2+
# self-play. It is probably very poor in quality.
33

44
13 E11 K11 C10 E4 G4 E3 | C7 # 14/14
55
13 C4 | D11 # 84/112

0 commit comments

Comments
 (0)