1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +00:00
BadFish/src
Marco Costalba 962216440c Teach SEE about pinned pieces
Remove pinned pieces from attacks when calculating
SEE value.

Algorithm is not perfect, there should be no false
positives, but can happen that we miss to remove a
pinned piece. Currently we don't cach 100% of cases,
but is a tradeoff between speed and accuracy. In any
case we stay on the safe side, so we remove an attacker
when we are sure it is pinned.

About only 0,5% of cases are affected by this patch, not
a lot given the hard work: this is a difficult patch!

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2009-02-23 21:45:01 +01:00
..
benchmark.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
benchmark.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
bitbase.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
bitbase.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
bitboard.cpp Add a see() function that take only destination square 2008-12-10 00:13:59 +01:00
bitboard.h Revert previous commit. 2009-02-04 19:40:09 +01:00
book.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
book.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
color.h Remove the useless color.cpp 2009-02-04 19:40:43 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
direction.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
direction.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
endgame.cpp Use template for endgame scaling functions 2009-02-13 20:55:29 +01:00
endgame.h Use template for endgame scaling functions 2009-02-13 20:55:29 +01:00
evaluate.cpp Revert mobility of pinned pieces for now 2009-02-19 15:49:54 +01:00
evaluate.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
history.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
history.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
lock.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
main.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
Makefile Fix Makefile 2009-02-07 13:26:17 +01:00
material.cpp Do not manually build endgame functions hash keys 2009-02-13 20:55:59 +01:00
material.h Use template for endgame scaling functions 2009-02-13 20:55:29 +01:00
mersenne.cpp Warnings termination fest 2008-09-24 00:32:53 +02:00
mersenne.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
misc.cpp Fix dbg_mean_of() to enable statistics when called 2008-12-30 12:54:21 +01:00
misc.h Restore development versioning and LSN filtering 2008-12-30 12:42:23 +01:00
move.cpp Remove xxx_of_color() helpers 2009-02-17 10:54:47 +01:00
move.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
movegen.cpp Remove two useless calls to pinned_pieces() 2009-02-22 21:17:44 +01:00
movegen.h Cleanup pinned and friends in movegen.cpp 2009-02-19 16:37:03 +01:00
movepick.cpp Do not pass discovery check candidates in Position::do_move() 2009-02-19 17:29:36 +01:00
movepick.h Do not pass discovery check candidates in Position::do_move() 2009-02-19 17:29:36 +01:00
pawns.cpp Remove xxx_of_color() for real 2009-02-17 17:26:15 +01:00
pawns.h PawnInfo::clear() retire memset() and fix Ubuntu compile 2009-02-04 19:41:17 +01:00
phase.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
piece.cpp Fix casting warnings under Intel Compiler 2009-02-07 13:26:29 +01:00
piece.h Remove xxx_of_color() helpers 2009-02-17 10:54:47 +01:00
position.cpp Teach SEE about pinned pieces 2009-02-23 21:45:01 +01:00
position.h Do not copy the whole old state in do_move() 2009-02-23 21:44:29 +01:00
psqtab.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
san.cpp Introduce StateInfo instead of UndoInfo 2009-02-22 21:18:50 +01:00
san.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
scale.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
search.cpp Introduce StateInfo instead of UndoInfo 2009-02-22 21:18:50 +01:00
search.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
square.h Fix casting warnings under Intel Compiler 2009-02-07 13:26:29 +01:00
thread.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
timeoday.cpp Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
tt.cpp Introduce StateInfo instead of UndoInfo 2009-02-22 21:18:50 +01:00
tt.h Update copyright info 2008-10-20 21:47:20 +02:00
types.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
uci.cpp Introduce StateInfo instead of UndoInfo 2009-02-22 21:18:50 +01:00
uci.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
ucioption.cpp Restore development versioning and LSN filtering 2008-12-30 12:42:23 +01:00
ucioption.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00
value.cpp Big trailing whitespace cleanup part 1 2009-01-07 15:47:59 +01:00
value.h Big trailing whitespace cleanup part 2 2009-01-07 15:48:11 +01:00