Stockfish question

General discussion about computer chess...
User avatar
Rebel
Posts: 515
Joined: Wed Jun 09, 2010 7:45 pm
Real Name: Ed Schroder

Stockfish question

Post by Rebel » Sat Jul 10, 2010 9:44 pm

Is there an option to totally exclude LMR in Stockfish? I want to measure the elo gain of LMR.

But perhaps one of the programmers can tell me straight away ;)

Ed

Peter C
Posts: 154
Joined: Thu Jun 10, 2010 3:12 am
Real Name: Peter C

Re: Stockfish question

Post by Peter C » Sat Jul 10, 2010 9:53 pm

Rebel wrote:Is there an option to totally exclude LMR in Stockfish? I want to measure the elo gain of LMR.

But perhaps one of the programmers can tell me straight away ;)

Ed
Suppose you could edit it yourself and recompile without LMR. But other than that, I don't think so.

Peter

mcostalba
Posts: 91
Joined: Thu Jun 10, 2010 11:45 pm
Real Name: Marco Costalba

Re: Stockfish question

Post by mcostalba » Sat Jul 10, 2010 11:46 pm

Apply following patch and compile.

Code: Select all


--- a/src/search.cpp
+++ b/src/search.cpp
@@ -882,7 +882,7 @@ namespace {
                     // if the move fails high will be re-searched at full depth
                     bool doFullDepthSearch = true;
 
-                    if (    depth >= 3 * OnePly
+                    if (    false && depth >= 3 * OnePly
                         && !dangerous
                         && !captureOrPromotion
                         && !move_is_castle(move))
@@ -1351,7 +1351,7 @@ namespace {
           // If the move fails high will be re-searched at full depth.
           bool doFullDepthSearch = true;
 
-          if (    depth >= 3 * OnePly
+          if (    false && depth >= 3 * OnePly
               && !captureOrPromotion
               && !dangerous
               && !move_is_castle(move)
@@ -1728,7 +1728,7 @@ namespace {
       // If the move fails high will be re-searched at full depth.
       bool doFullDepthSearch = true;
 
-      if (   !captureOrPromotion
+      if (   false && !captureOrPromotion
           && !dangerous
           && !move_is_castle(move)
           && !move_is_killer(move, ss))


User avatar
Sean Evans
Posts: 173
Joined: Fri Jun 11, 2010 1:21 am
Real Name: Sean Evans

Re: Stockfish question

Post by Sean Evans » Sun Jul 11, 2010 1:41 am

Peter C wrote:
Rebel wrote:Is there an option to totally exclude LMR in Stockfish? I want to measure the elo gain of LMR.

But perhaps one of the programmers can tell me straight away ;)

Ed
Suppose you could edit it yourself and recompile without LMR. But other than that, I don't think so.

Peter
And you are 12-years old Peter? Ed has been a programmer three times longer than you have been alive :)

Sentinel
Posts: 122
Joined: Thu Jun 10, 2010 12:49 am
Real Name: Milos Stanisavljevic

Re: Stockfish question

Post by Sentinel » Sun Jul 11, 2010 2:57 am

Sean Evans wrote:And you are 12-years old Peter? Ed has been a programmer three times longer than you have been alive :)
As Marco shown LMR condition appears in only 3 lines in search.cpp. Finding them, even if you are unfamiliar with Stockfish code takes about 1 minute (supposing you have some chess programming experience, which is more than true in Ed's case).
Ed's question just demonstrates his laziness I would say...

mcostalba
Posts: 91
Joined: Thu Jun 10, 2010 11:45 pm
Real Name: Marco Costalba

Re: Stockfish question

Post by mcostalba » Sun Jul 11, 2010 6:56 am

Sentinel wrote:Ed's question just demonstrates his laziness I would say...
Also my answer :D

User avatar
Rebel
Posts: 515
Joined: Wed Jun 09, 2010 7:45 pm
Real Name: Ed Schroder

Re: Stockfish question

Post by Rebel » Sun Jul 11, 2010 7:48 am

Sentinel wrote: Ed's question just demonstrates his laziness I would say...
Exactly! :mrgreen:

And going one step further, would someone do it for me?

Seriously, I don't have MSVC and don't want to go through that. I exclusively have used the "Digital Mars" compiler in the past and that one is not compatible with MSVC and/or GCC source code.

Ed

mcostalba
Posts: 91
Joined: Thu Jun 10, 2010 11:45 pm
Real Name: Marco Costalba

Re: Stockfish question

Post by mcostalba » Sun Jul 11, 2010 12:25 pm

Rebel wrote:
Sentinel wrote: Ed's question just demonstrates his laziness I would say...
Exactly! :mrgreen:

And going one step further, would someone do it for me?

Seriously, I don't have MSVC and don't want to go through that. I exclusively have used the "Digital Mars" compiler in the past and that one is not compatible with MSVC and/or GCC source code.

Ed
Sure ! As long as that 'someone' is not me :mrgreen:


BTW you'd certanly know that you can download and setup MSVC 2010 Express version for free and in less then half an hour, do you ? ;)

Peter C
Posts: 154
Joined: Thu Jun 10, 2010 3:12 am
Real Name: Peter C

Re: Stockfish question

Post by Peter C » Sun Jul 11, 2010 8:11 pm

Sean Evans wrote:
Peter C wrote:
Rebel wrote:Is there an option to totally exclude LMR in Stockfish? I want to measure the elo gain of LMR.

But perhaps one of the programmers can tell me straight away ;)

Ed
Suppose you could edit it yourself and recompile without LMR. But other than that, I don't think so.

Peter
And you are 12-years old Peter? Ed has been a programmer three times longer than you have been alive :)
Ahem. 13. ;)

Peter

User avatar
Rebel
Posts: 515
Joined: Wed Jun 09, 2010 7:45 pm
Real Name: Ed Schroder

Re: Stockfish question

Post by Rebel » Mon Jul 12, 2010 12:26 am

mcostalba wrote: BTW you'd certanly know that you can download and setup MSVC 2010 Express version for free and in less then half an hour, do you ? ;)
Well, as nobody volunteered I had too :lol: I have an eng-eng match running now, SF 1.8 vs SF 1.8 (no LMR). Long time ago I did the stuff.

The normal SF typically hits 5-6 more plies than the no-LMR version on a time-control of 40/10. Nevertheless the first game looks bad for SF 1.8

We will see...

Ed

Post Reply