Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Mar 3, 2024
1 parent 990c53a commit e72aef2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LIBS = -pthread -lm
WARN = -Wall -Wextra -Wshadow -Werror -Wmissing-declarations
NDEBUG = -DNDEBUG

FLAGS = $(STD) $(WARN) -O3 -flto
FLAGS = $(STD) $(WARN) -O3
CFLAGS = $(FLAGS) -march=native
RFLAGS = $(FLAGS) -static

Expand Down
3 changes: 2 additions & 1 deletion src/bitboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ INLINE Bitboard XRayAttackBB(const Position *pos, const Color color, const Piece
switch (pt) {
case BISHOP: occ ^= colorPieceBB(color, BISHOP); break;
case ROOK : occ ^= colorPieceBB(color, ROOK); break;
case QUEEN : occ ^= colorPieceBB(color, ROOK) ^ colorPieceBB(color, BISHOP); break;
case QUEEN : return AttackBB(ROOK, sq, occ ^ colorPieceBB(color, ROOK))
| AttackBB(BISHOP, sq, occ = colorPieceBB(color, BISHOP)); break;
}
return AttackBB(pt, sq, occ);
}
Expand Down
4 changes: 2 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
TakeMove(pos);

// Search to reduced depth with a zero window a bit lower than ttScore
int singularBeta = ttScore - depth * 2;
int singularBeta = ttScore - depth * (2 - pvNode);
ss->excluded = move;
score = AlphaBeta(thread, ss, singularBeta-1, singularBeta, depth/2, cutnode);
ss->excluded = NOMOVE;
Expand All @@ -452,7 +452,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
} else if (singularBeta >= beta)
return singularBeta;
// Negative extension - not singular but likely still good enough to beat beta
else if (ttScore >= beta)
else if (depth limit? ttScore >= beta)
extension = -1;

// Replay ttMove
Expand Down

0 comments on commit e72aef2

Please sign in to comment.