All non pawn captures will give a higher "50 move counter before first reset"Daniel Shawul wrote:The reason why I use the distance from root is to avoid silly moves like this.
[d] 8/6k1/pK6/8/8/3R4/8/8 w - - 0 1
Now in this position white should just capture the black pawn and move on. But before I added the PLY factor, it evaluates almost all moves as equal. That is Kxa6,Ka5,Kc5,Kc6 etc are all the same, but obviously Kxa3 is the best because it happens earlier. The 50 move rule can not help us here because the other moves can also capture the pawn quite easily. For example Ka4->black king moves->Kxa3 (or could still move to Kb6 and continue forever until it starts looking at the 50 move rule). This turned out to be a big factor most of the times, but in some cases other factors could govern also.
One thing I forgot to mention as regards material, bonus will be given when a side is ahead in material and _also_ when the number of pieces is lower. For example a KQBKB is less prefered than a KQK even though they both have the same material differene. This is I think the other term which has a big factor.
Edit: I want to add that the example I gave above is very simple. But the white king could be further from the black pawn. In that case the white king should go for the shortest path possible to capture the black pawn.
What I experienced is since there are many ways to capture the black moves even if you make non-optimal moves, it stops making distinction between the different paths. I found the PLY factor suitable for that purpose.
Daniel
But "lower pieceCount higher score" and "distance of pawn to promotion square" will help.
Tony