Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
5.7.6 shorten SEE
  • Loading branch information
Oliver Brausch committed Sep 12, 2020
1 parent e7c28ba commit c27b0b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/olithink.c
@@ -1,5 +1,5 @@
/* OliThink5 (c) Oliver Brausch 12.Sep.2020, ob112@web.de, http://brausch.org */
#define VER "5.7.6"
#define VER "5.7.6a"
#include <stdio.h>
#include <string.h>
#if defined(_WIN32) || defined(_WIN64)
Expand Down Expand Up @@ -898,15 +898,17 @@ int swap(Move m) { //SEE
else if ((temp = pieceb[BISHOP] & colorb[c] & attacks)) piece = BISHOP;
else if ((temp = pieceb[ROOK] & colorb[c] & attacks)) piece = ROOK;
else if ((temp = pieceb[QUEEN] & colorb[c] & attacks)) piece = QUEEN;
else if ((temp = pieceb[KING] & colorb[c] & attacks)) piece = KING;
else if ((temp = pieceb[KING] & colorb[c] & attacks)) {
piece = KING; if (colorb[c^1] & attacks) break;
}
else break;

temp &= -(long long)temp;
colorb[c] ^= temp;

s_list[nc] = -s_list[nc - 1] + a_piece;
a_piece = pval[piece];
nc++;
if (a_piece < s_list[++nc - 1]) break;
c ^= 1;
} while (attacks);

Expand Down

0 comments on commit c27b0b4

Please sign in to comment.