Add debug printf in ParseMove
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 19 Jan 2013 16:41:03 +0000 (17:41 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 19 Jan 2013 16:41:03 +0000 (17:41 +0100)
hachu.c

diff --git a/hachu.c b/hachu.c
index b00538a..8a92ee5 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -1990,6 +1990,7 @@ MapFromScratch(attacks);
     if((moveStack[i] & (PROMOTE | DEFER-1)) == ret) break;\r
     if((moveStack[i] & DEFER-1) == ret) deferred = i; // promoted version of entered non-promotion is legal\r
   }\r
+printf("# moveNr = %d in {%d,%d}\n", i, retFirst, retMSP);\r
   if(i>=retMSP) {  // no exact match\r
     if(deferred) { // but maybe non-sensical deferral\r
       int flags = p[board[f]].promoFlag;\r