GNU Shogi 1.1.pl01
[gnushogi.git] / src / debug41.h
blob06c048bb54507079992297863c7f4371ba6c5a87
1 #ifdef DEBUG41
2 void
3 debug41 (short int score, short unsigned int xxx[], char ch)
5 register int i;
6 FILE *D;
7 int r, c, l;
8 struct leaf *xnode;
10 D = fopen ("/tmp/DEBUG", "a+");
11 if (D == NULL)
13 perror ("opening D");
16 ElapsedTime (2);
17 fprintf (D, "%2d%c %6d %4ld %8ld ", Sdepth, ch, score, et / 100, NodeCnt);
19 for (i = 1; xxx[i]; i++)
21 if ((i > 1) && (i % 8 == 1))
22 fprintf (D, "\n ");
23 algbr ((short) (xxx[i] >> 8), (short) (xxx[i] & 0xFF), false);
24 fprintf (D, "%5s ", mvstr[0]);
26 fprintf (D, "\n");
27 fclose (D);
30 #endif