Skip to content

Commit 0b59470

Browse files
authored
Improve LMP formula (#76)
``` ELO | 19.87 +- 9.95 (95%) SPRT | 10.0+0.1s Threads=1 Hash=16MB LLR | 2.95 (-2.94, 2.94) [0.00, 5.00] Games | N: 2906 W: 983 L: 817 D: 1106 ``` Bench: 7280905
1 parent ac65a91 commit 0b59470

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Bit-Genie/src/search.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ namespace
135135
bool at_root = search.stats.ply == 0;
136136
bool tthit = entry.hash == position.key.data();
137137
int move_num = 0;
138-
int qmove_num = 0;
139138
int original = alpha;
140139

141140
if (!at_root)
@@ -181,12 +180,10 @@ namespace
181180

182181
for (Move move; picker.next(move);)
183182
{
184-
if (picker.stage >= MovePicker::Stage::GiveQuiet && qmove_num > int(picker.gen.movelist.size() / (3 - pv_node) + depth * 2))
183+
if (picker.stage >= MovePicker::Stage::GiveQuiet && move_num > depth * depth * 2 + 2)
185184
break;
186185

187186
move_num++;
188-
if (picker.stage == MovePicker::Stage::GiveQuiet)
189-
qmove_num++;
190187

191188
position.apply_move(move, search.stats.ply);
192189

Bit-Genie/src/uci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "searchinit.h"
2727
#include "polyglot.h"
2828

29-
const char *version = "6.6";
29+
const char *version = "6.65";
3030

3131
namespace
3232
{

0 commit comments

Comments
 (0)