Best move never changes

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Best move never changes

Post by Henk »

Best move at highest levels of the search almost never changes in my engine. So it wastes most of it's time. For if it would have stopped earlier the same best move would have been found. Looks like something wrong. I think it's because it reduces (applies LMR) after first move (best move of previous iterations). I don't know.
User avatar
vittyvirus
Posts: 646
Joined: Wed Jun 18, 2014 2:30 pm
Full name: Fahad Syed

Re: Best move never changes

Post by vittyvirus »

Henk wrote:Best move at highest levels of the search almost never changes in my engine. So it wastes most of it's time. For if it would have stopped earlier the same best move would have been found. Looks like something wrong. I think it's because it reduces (applies LMR) after first move (best move of previous iterations). I don't know.
Where's the code?
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Best move never changes

Post by bob »

vittyvirus wrote:
Henk wrote:Best move at highest levels of the search almost never changes in my engine. So it wastes most of it's time. For if it would have stopped earlier the same best move would have been found. Looks like something wrong. I think it's because it reduces (applies LMR) after first move (best move of previous iterations). I don't know.
Where's the code?
The last experiment several of us did, independently, starting with "Crafty goes Deep" by Monty Newborn and myself, and then "Dark Thought goes deep" by Earnst Heinz, found that our programs changed their mind on the order of 15%-18% of the time, each time we go a ply deeper. Obviously in some forced cases you never change your mind, so we did not include those in the test, we just took a set of 360 positions or so from the DB vs Kasparov matches and used those.

Never changing your mind certainly seems wrong as it suggests that additional depth is not revealing anything new to you.
ZirconiumX
Posts: 1334
Joined: Sun Jul 17, 2011 11:14 am

Re: Best move never changes

Post by ZirconiumX »

Henk wrote:Best move at highest levels of the search almost never changes in my engine. So it wastes most of it's time. For if it would have stopped earlier the same best move would have been found. Looks like something wrong. I think it's because it reduces (applies LMR) after first move (best move of previous iterations). I don't know.
Highlighted for clarity.

Do you do any tactical search extensions?

A possible improvement you could make would be "easy move", where if the best move has never changed (for the last 5 plies maybe) and it's 50cp or so better than the next move, then play it. Can be useful in situations where your engine is too blind to see the best move - play what we think is best, then we get more time to think.

Matthew:out
Some believe in the almighty dollar.

I believe in the almighty printf statement.
Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: Best move never changes

Post by Henk »

I think it reduces too much when applying LMR after first move, so it gets severe ply inflation.

[Of course a good move is a good move so it should not change.]
ZirconiumX
Posts: 1334
Joined: Sun Jul 17, 2011 11:14 am

Re: Best move never changes

Post by ZirconiumX »

Henk wrote:I think it reduces too much when applying LMR after first move, so it gets severe ply inflation.

[Of course a good move is a good move so it should not change.]
But alpha beta doesn't look for a good move, it looks for the best move. So something is quite clearly wrong.

Matthew:out
Some believe in the almighty dollar.

I believe in the almighty printf statement.