http://code.google.com/p/gray-matter/source/detail?r=1614
Modified:
/trunk/inc/config.h
/trunk/src/board_base.cpp
=======================================
--- /trunk/inc/config.h Fri Jul 30 11:17:03 2010
+++ /trunk/inc/config.h Fri Jul 30 11:52:14 2010
@@ -48,7 +48,7 @@
#define MAX_DEPTH 32 // Maximum search depth (in plies).
#define MAX_MOVES_PER_TURN 200 // only X moves per turn analyzed
#define MAX_MOVES_PER_GAME 500 // only X moves per game
-#define SPECIAL_SEARCH_DEPTH 5 // search X plys deeper for captures, etc.
(odd number)
+#define SPECIAL_SEARCH_DEPTH 3 // search X plys deeper for captures, etc.
(odd number)
#define R 1 // Null move pruning depth reduction
factor (in plies).
#define NMP_PIECE_LIMIT 15 // fewer than X = don't do null move
pruning
=======================================
--- /trunk/src/board_base.cpp Fri Jul 30 11:18:53 2010
+++ /trunk/src/board_base.cpp Fri Jul 30 11:52:14 2010
@@ -711,7 +711,7 @@
// If we're moving a piece from one of our rooks' initial positions,
then
// make sure that we're no longer marked able to castle on that
rook's side.
- if ((m.x1 == 0 || m.x1 == 7) && (m.y1 == (ON_MOVE ? 7 : 0)) &&
state.castle[ON_MOVE][m.x1 == 7] == CAN_CASTLE)
+ if ((m.x1 == 0 || m.x1 == 7) && (m.y1 == (ON_MOVE ? 7 : 0)))
{
state.castle[ON_MOVE][m.x1 == 7] = CANT_CASTLE;
hash ^= key_castle[ON_MOVE][m.x1 == 7][CANT_CASTLE];