Skip to content

Commit ff0d4fb

Browse files
author
Oliver Brausch
committed
5.3.0 No LMR for passed pawns
1 parent df33285 commit ff0d4fb

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/Readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
OliThink5 (c) Oliver Brausch 09.Jan.2010, ob112@web.de, http://home.arcor.de/dreamlike
1+
OliThink5 (c) Oliver Brausch 28.Jan.2010, ob112@web.de, http://home.arcor.de/dreamlike
22

3-
Version: 5.2.9
3+
Version: 5.3.0
44
Protocol: Winboard 2
55
HashSize: 48mb
66
Ponder: Yes
@@ -13,6 +13,9 @@ LinesOfCode: 1670
1313
Stability: 100%
1414
Strength: slightly weaker than Glaurung/Crafty
1515

16+
v5.3.0: changes since 5.2.9:
17+
No LMR for passed pawns
18+
1619
v5.2.9: changes since 5.2.8:
1720
More flexible reducing in Null Move Pruning
1821

src/olithink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* OliThink5 (c) Oliver Brausch 09.Jan.2010, ob112@web.de, http://home.arcor.de/dreamlike */
2-
#define VER "5.2.9"
1+
/* OliThink5 (c) Oliver Brausch 25.Jan.2010, ob112@web.de, http://home.arcor.de/dreamlike */
2+
#define VER "5.3.0"
33
#define _CRT_SECURE_NO_DEPRECATE
44
#include <stdio.h>
55
#include <stdlib.h>
@@ -1364,7 +1364,7 @@ int search(u64 ch, int c, int d, int ply, int alpha, int beta, int pvnode, int n
13641364
if (nch) ext++; // Check Extension
13651365
else if (d >= 3 && i >= 4 && !pvnode) { //LMR
13661366
if (CAP(m) || PROM(m)); //Don't reduce Captures and Promotions
1367-
else if (PIECE(m) == PAWN && ((TO(m) + 16) & 48) < 32); //Don't reduce pawns moving to 7th rank
1367+
else if (PIECE(m) == PAWN && !(pawnfree[TO(m) + (c << 6)] & pieceb[PAWN] & colorb[c^1])); //Don't reduce free pawns
13681368
else ext--;
13691369
}
13701370

0 commit comments

Comments
 (0)