skipb();
Captured[side][pawn] = atoi(InPtr);
skip();
+#ifndef MINISHOGI
Captured[side][lance] = atoi(InPtr);
skip();
Captured[side][knight] = atoi(InPtr);
skip();
+#endif
Captured[side][silver] = atoi(InPtr);
skip();
Captured[side][gold] = atoi(InPtr);
}
fputs(empty, fd);
- fprintf(fd, " 9 8 7 6 5 4 3 2 1\n"); /* FIXME */
+#ifndef MINISHOGI
+ fprintf(fd, " 9 8 7 6 5 4 3 2 1\n");
fputs(empty, fd);
fprintf(fd, " p l n s g b r k\n");
+#else
+ fprintf(fd, " 5 4 3 2 1\n");
+ fputs(empty, fd);
+ fprintf(fd, " p s g b r k\n");
+#endif
for (side = 0; side <= 1; side++)
{
fprintf(fd, "%c", (side == black) ? 'B' : 'W');
fprintf(fd, " %2d", Captured[side][pawn]);
+#ifndef MINISHOGI
fprintf(fd, " %2d", Captured[side][lance]);
fprintf(fd, " %2d", Captured[side][knight]);
+#endif
fprintf(fd, " %2d", Captured[side][silver]);
fprintf(fd, " %2d", Captured[side][gold]);
fprintf(fd, " %2d", Captured[side][bishop]);
InPtr = fname;
Captured[side][pawn] = atoi(InPtr);
skip();
+#ifndef MINISHOGI
Captured[side][lance] = atoi(InPtr);
skip();
Captured[side][knight] = atoi(InPtr);
skip();
+#endif
Captured[side][silver] = atoi(InPtr);
skip();
Captured[side][gold] = atoi(InPtr);
for (side = 0; side <= 1; side++)
{
- sprintf(fname, "%d %d %d %d %d %d %d %d\n",
+ sprintf(fname,
+#ifndef MINISHOGI
+ "%d %d %d %d %d %d %d %d\n",
+#else
+ "%d %d %d %d %d %d\n",
+#endif
Captured[side][pawn],
+#ifndef MINISHOGI
Captured[side][lance],
Captured[side][knight],
+#endif
Captured[side][silver],
Captured[side][gold],
Captured[side][bishop],
dbuf[16] = '\0';
dbuf[19] = '\0';
- /* use format "CLp16.Jan01-020304B" when patchlevel is 16,
+ /* use format "CL.Jan01-020304B" when
date is Jan 1
time is 02:03:04
program played white */
- sprintf(fname, "CLp%s.%s%s-%s%s%s%c",
- patchlevel, dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14,
+ sprintf(fname, "CL.%s%s-%s%s%s%c",
+ dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14,
dbuf + 17, ColorStr[computer][0]);
/* replace space padding with 0 */
exit(1);
}
- fprintf(fd, "gnushogi %sp%s game\n", version, patchlevel);
+ fprintf(fd, "gnushogi %s game\n", PACKAGE_VERSION);
fputs(" score depth nodes time ", fd);
fputs(" score depth nodes time\n", fd);