From df950afb30088935a862f9e0d5194e432de0af5a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 18 Jan 2013 17:05:30 +0100 Subject: [PATCH] Fix bug in move sorting Due to reverse comparison, oves were resorted on every iteration into the static order, completely thwarting the purpose of (I)ID. --- hachu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hachu.c b/hachu.c index ac3ed99..ca7f32d 100644 --- a/hachu.c +++ b/hachu.c @@ -1612,7 +1612,7 @@ if(PATH) printf("%d:%2d:%2d msp=%d\n",level,depth,iterDep,msp); // MOVE EXTRACTION extractMove: if(flag & depth >= 0) printf("%2d:%d extract %d/%d\n", depth, iterDep, curMove, msp); - if(curMove < sorted) { + if(curMove > sorted) { move = moveStack[sorted=j=curMove]; for(i=curMove+1; i move) move = moveStack[j=i]; // search move with highest priority -- 1.7.0.4