]> git.sesse.net Git - stockfish/commit
Fix critical SEE bug (take 2)
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jul 2013 12:24:23 +0000 (14:24 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jul 2013 12:24:47 +0000 (14:24 +0200)
commit3e95800814d70587fb6b12efb33faea4c7228f88
tree0d9ef5f562f2da35ded98a145ad0d6ef156e1ae9
parent2ed56f4d5f0bd70f7736abd3ef3985d7276d49cc
Fix critical SEE bug (take 2)

It is somewhat unbilievable but our SEE is broken !

    If the first SEE move is a king capture and square is
    defended then SEE continues instead of breaking.

    The bug shows only on normal SEE, not see_sign() so
    probing with a:

    dbg_hit_on_c(slIndex==1, captured == KING);

    reports just a tiny:

    Total 3465656 Hits 6646 hit rate (%) 0

    Bug was there since Retire seeValues[] and move PieceValue[] out of Position of 26/6/2011 (!)
    although for some reason didn't show immediately, indeed the
    bougous patch was a "No functional change" (!!)

    bench: 4699504
src/position.cpp