home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 3 / cd.iso / os2 / pmgnuchs / debug41.h < prev    next >
C/C++ Source or Header  |  1993-06-22  |  611b  |  31 lines

  1. #ifdef DEBUG41
  2. void
  3. debug41 (short int score, short unsigned int xxx[], char ch)
  4. {
  5.   register int i;
  6.   FILE *D;
  7.   int r, c, l;
  8.   struct leaf *xnode;
  9.  
  10.   D = fopen ("/tmp/DEBUG", "a+");
  11.   if (D == NULL)
  12.     {
  13.       perror ("opening D");
  14.     }
  15.  
  16.   ElapsedTime (2);
  17.   fprintf (D, "%2d%c %6d %4ld %8ld  ", Sdepth, ch, score, et / 100, NodeCnt);
  18.  
  19.   for (i = 1; xxx[i]; i++)
  20.     {
  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]);
  25.     }
  26.   fprintf (D, "\n");
  27.   fclose (D);
  28. }
  29.  
  30. #endif
  31.