1
0
Fork 0
stockfish/src
Marco Costalba 3e4dcaa06e Fix a bogus assert in allows()
Becuase castle is coded as "king captures the rook"
the to_sq(move), A1/8 or H1/8 is empty after the move,
leading to assert assert(p != NO_PIECE) in color_of().

Teach allows() asserts about castle and fix the crash.

Bug reported by Ryan Takker and tracked down by Tom Vijlbrief.

No functional change.
2013-08-30 16:42:18 +02:00
..
Makefile Revert using exceptions 2013-08-15 09:36:26 +02:00
benchmark.cpp Rework Thread hierarchy 2013-07-31 18:35:52 +02:00
bitbase.cpp Fully qualify memset and memcpy 2013-07-13 18:01:13 +02:00
bitboard.cpp Simplify DistanceRingsBB init 2013-08-14 10:53:43 +02:00
bitboard.h Use frontmost_sq() and backmost_sq helpers 2013-08-30 16:22:22 +02:00
bitcount.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
book.cpp Microptimize MoveList loop 2013-05-19 22:00:49 +02:00
book.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
endgame.cpp Use frontmost_sq() and backmost_sq helpers 2013-08-30 16:22:22 +02:00
endgame.h Retire redundant endgames 2013-08-22 13:13:06 +02:00
evaluate.cpp Bonus for rook behind a passed 2013-08-29 22:53:21 +02:00
evaluate.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
main.cpp Zobrist::init() should be Position::init() 2013-06-09 13:54:38 +02:00
material.cpp Retire redundant endgames 2013-08-22 13:13:06 +02:00
material.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
misc.cpp Restore development version 2013-08-21 08:41:47 +02:00
misc.h Streamline time computation 2013-08-03 18:30:43 +02:00
movegen.cpp Speed up move generation 2013-07-29 19:01:50 +02:00
movegen.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
movepick.cpp Simplify captures ordering 2013-07-24 07:53:32 +02:00
movepick.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
notation.cpp Microptimize MoveList loop 2013-05-19 22:00:49 +02:00
notation.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
pawns.cpp Use frontmost_sq() and backmost_sq helpers 2013-08-30 16:22:22 +02:00
pawns.h Small renaming 2013-07-29 19:32:59 +02:00
platform.h Streamline time computation 2013-08-03 18:30:43 +02:00
position.cpp Further tweak Position::flip 2013-08-05 14:44:06 +02:00
position.h Further factor out position update code 2013-08-01 16:32:46 +02:00
psqtab.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
rkiss.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
search.cpp Fix a bogus assert in allows() 2013-08-30 16:42:18 +02:00
search.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
thread.cpp Use constants arguments where possible 2013-08-16 09:57:21 +02:00
thread.h Use constants arguments where possible 2013-08-16 09:57:21 +02:00
timeman.cpp Time management: move faster if PV is stable 2013-08-26 10:29:58 -07:00
timeman.h Time management: move faster if PV is stable 2013-08-26 10:29:58 -07:00
tt.cpp Some renaming in TT store() 2013-08-14 09:38:35 +02:00
tt.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00
types.h Fix crash when reaching max ply 2013-08-19 16:53:46 +02:00
uci.cpp Restore development version 2013-08-21 08:41:47 +02:00
ucioption.cpp Time management: move faster if PV is stable 2013-08-26 10:29:58 -07:00
ucioption.h Use #ifndef instead of #if !defined 2013-07-24 19:49:17 +02:00