Best move never changes
Moderators: hgm, Rebel, chrisw
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Best move never changes
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.
-
- Posts: 646
- Joined: Wed Jun 18, 2014 2:30 pm
- Full name: Fahad Syed
Re: Best move never changes
Where's the code?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.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Best move never changes
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.vittyvirus wrote:Where's the code?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.
Never changing your mind certainly seems wrong as it suggests that additional depth is not revealing anything new to you.
-
- Posts: 1334
- Joined: Sun Jul 17, 2011 11:14 am
Re: Best move never changes
Highlighted for clarity.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.
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.
I believe in the almighty printf statement.
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Best move never changes
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.]
[Of course a good move is a good move so it should not change.]
-
- Posts: 1334
- Joined: Sun Jul 17, 2011 11:14 am
Re: Best move never changes
But alpha beta doesn't look for a good move, it looks for the best move. So something is quite clearly wrong.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.]
Matthew:out
Some believe in the almighty dollar.
I believe in the almighty printf statement.
I believe in the almighty printf statement.