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

  1. #ifdef DEBUG
  2. if (debuglevel & 2560)
  3. {
  4.     int             j;
  5.  
  6.     if (debuglevel & 512 && (tracen > 0 && traceflag))
  7.     {
  8.     traceline[0]='\0';
  9.     for (j=1;tracelog[j];j++){
  10.         algbr(tracelog[j]>>8,tracelog[j]&0xff,0);
  11.         strcat(traceline," ");
  12.         strcat(traceline,mvstr[0]);
  13.     }
  14.  
  15.     printf("Ply %d alpha %d beta %d score %d %s\n", ply, alpha, beta, score,traceline);
  16.     if(debuglevel & 2048){
  17.         for (j = ply; j < ply + 1; j++)
  18.         {
  19.             int             idb;
  20.  
  21.             for (idb = TrPnt[j]; idb < TrPnt[j + 1]; idb++)
  22.             {
  23.                 algbr(Tree[idb].f, Tree[idb].t, Tree[idb].flags);
  24.                 printf("level 512 %d-->%d %s %d %d %x\n", ply, idb, mvstr[0], Tree[idb].score, Tree[idb].width, Tree[idb].flags);
  25.             }
  26.         }
  27. }
  28. }
  29.     }
  30.  
  31. #endif
  32.