Files
Stockfish/src
Dan Schmidt f7096ea7ce Refactor do_castle()
Not a real functional change, but bench changed due to different piecelist
reordering. To verify it a temporary my canonicalize_rooks function was
written as follows. It just ensures that the rook on the "smaller" square
is listed first.

void Position::canonicalize_rooks(Color c)
{
   if (pieceCount[c][ROOK] == 2)
   {
      Square s0 = pieceList[c][ROOK][0];
      Square s1 = pieceList[c][ROOK][1];
      if (s0 > s1)
      {
         pieceList[c][ROOK][0] = s1;
         pieceList[c][ROOK][1] = s0;
         index[s0] = 1;
         index[s1] = 0;
      }
   }
}

With this both bench and the test on Chess960 positions

./stockfish bench 128 1 8 Chess960.epd file > /dev/null

Gives same result.

bench: 4424151
2013-08-03 16:18:28 +02:00
..
2013-07-31 18:35:52 +02:00
2013-07-29 19:32:59 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 19:49:17 +02:00
2013-07-27 08:25:45 +02:00
2013-07-27 08:25:45 +02:00
2013-07-29 19:32:59 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 19:49:17 +02:00
2013-08-02 16:48:25 +02:00
2013-08-02 16:48:25 +02:00
2013-07-29 19:01:50 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 07:53:32 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 19:49:17 +02:00
2013-07-29 19:32:59 +02:00
2013-07-29 19:32:59 +02:00
2013-08-02 16:48:25 +02:00
2013-08-03 16:18:28 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 19:49:17 +02:00
2013-07-31 18:35:52 +02:00
2013-07-24 19:49:17 +02:00
2013-08-02 16:48:25 +02:00
2013-07-31 18:35:52 +02:00
2013-07-24 19:49:17 +02:00
2013-07-24 19:49:17 +02:00
2013-07-31 18:35:52 +02:00
2013-08-02 16:48:25 +02:00