Sven Schüle wrote:
One more tiny thing, your loop terminates by "i < MAX_PLY - 1" but I think you can go one entry further, terminating by "i < MAX_PLY" instead since you do not access your pv[] array with index "i + 1". Here I assume that pv[] is defined with size MAX_PLY.
You're right, I was confusing the lines and rowsin my array..
But in the end, where is the PV ? is it
By the way, it is interesting to note that if you in fact take the diagonal, the result will be exactly the same that your initial approach produces (-:
OliverUwira wrote:
By the way, it is interesting to note that if you in fact take the diagonal, the result will be exactly the same that your initial approach produces (-:
so you would print "d4 Nf6 Nf3" as PV with your method.
Sven
No the pv shown at the root is the first line, which is simply: d4 Nf6 (and stop because NoMove). In practice it seems to work perfectly and Kurt uses it with no problems.
Displaying the *diagonal* however is incorrect, as we've seen in earlier posts. That was my mistake at the beginning.
Another thing to be noted, I always display a full PV line (exactly d moves if searching at depth = d), because at PV nodes, I do not prune with the TTable, but only use it for move ordering. It also avoid errors when considering 3/50 move draws and some mate situations.
so you would print "d4 Nf6 Nf3" as PV with your method.
Sven
No the pv shown at the root is the first line, which is simply: d4 Nf6 (and stop because NoMove). In practice it seems to work perfectly and Kurt uses it with no problems.
Displaying the *diagonal* however is incorrect, as we've seen in earlier posts. That was my mistake at the beginning.
Another thing to be noted, I always display a full PV line (exactly d moves if searching at depth = d), because at PV nodes, I do not prune with the TTable, but only use it for move ordering. It also avoid errors when considering 3/50 move draws and some mate situations.
It seems I misunderstood Oliver when I replied to his comment about using the diagonal, and maybe also you misunderstood my post in turn. But now we are in line again, knowing that displaying the diagonal is wrong and displaying pv[0] is right