In the diagram that I gavebob wrote:Why is it "counter-intuitive" that PxN, which wins a piece for a pawn if not a piece outright, is better than QxQ which is an even trade (although obviously it might win more.) It seems completely logical to me that a move that wins material has a greater probability of failing high than a move that appears to be an even trade. What am I missing that you are thinking about?Uri Blass wrote:I can only say that the results that you give are counter intuitive andbob wrote:hmmm...
went to a lot of trouble to run these tests. No one has a comment after seeing real data as opposed to conjectured possibilities??? Clearly PxN is better than QxQ with regard to producing a cutoff, as I had suspected. The QxQ advantage is somewhere else, _not_ in its superiority to PxN based on expected material gain.
All that is left is the original idea from the discussion when I converted to this ordering after others had reported it was better, namely that it reduces the size of the sub-tree below the capture since the Q gets removed.
it may be interesting to get some epd file of random 100 positions when both PXN and QxQ are possible in the qsearch to see what happens and why do you get that there are more fail high for PxN.
That makes no sense to me. It is my move, and I can play PxN. What was my opponent's last move? Only possible choice is a queen move that attacks my queen. Otherwise I could have taken his queen already. What do you suppose the probability of a hanging queen is as opposed to a defended queen?
I expected that you should get often cases when QxQ is better
because PxN is simply refuted by QxQ of the opponent like the following diagram.
[d]8/4k3/3q4/7n/6P1/3Q4/8/6K1 w - - 0 1
I did some further measurements, but only a quick one-game test to see what the probability is that a QxQ wins the queen outright, as opposed to just being a trade. The only time that QxQ becomes a frequent winner is in endgames after a pawn promotion. Otherwise the queen rips get played in the normal search before the q-search is reached. It takes very unusual conditions in the q-search to expose an attack on an undefended queen, so that the opponent would not want to play PxN but would prefer to play QxQ to save his queen instead.
Remember that the q-search doesn't try non-captures for most people, which would seem to make this scenario pretty rare. The first game I gave data for above was 150+ moves long. At about 2 seconds per move average. Yet there were only about 16,000 cases where both moves could be played in the same position. And by a 2:1 majority PxN would fail high more times than QxQ.
if black's last move was Qc6d6 and now it is white to move in the Qsearch
then QxQ can fail high when not PxN
I cannot believe that the case that black last move is Qc6d6 is not common so
I guess that in this case usually both moves are going to fail low but
searching QxQ first may help you to fail low faster
so maybe it is a better idea to have a different qsearch for moves that you expect to fail high and for moves that you expect to fail low.
Maybe you should search PxN first if you expect the first move to fail high(you are trying to refute moves of the opponent that is not the first move) and QxQ first if you expect the move to fail low.
Uri