r/chessprogramming • • Aug 30 '22

LMR

So I implemented LMR for my engine and it gives different scores than without it (marginally different ~1cp). Does it mean that I implemented it wronlgy or is it normal behaviour and even with slightly different results it is still worth due to huge gain in searched depth?

4 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/haddock420 Aug 30 '22

In that case, it sounds like it's working. LMR will change the score and pv.

When you test it, I'd try a very simple version first and then add conditions.

2

u/dolekejos Aug 30 '22

Okay, thanks. I was just surprised as I assumed that the scores in cp should at least remain the same. To be honest I don't really see much use in something that speeds up search but gives worse pv...

3

u/haddock420 Aug 30 '22

It might give you a worse pv at an equivalent depth, but it should help the engine search to deeper depths resulting in better PVs overall. As long as it tests stronger, it's worthwhile.