H.G.Muller wrote:The piece-square problem you mention seems intrinsic to any search that works through iterative deepening. No matter how you determine if a certain position is good for a piece (piece-square, (safe) mobility), if the opponent can chase you away once you get there, it is not so good after all. The chasing away is simply the positional equivalent of a recapture:
I capture QxR: great score! He captures my Queen back: ughhh!
The search only stabilizes after the entire tactical exchange is within the horizon, before that, scores are simply crap (with all the bad consequences that has for alpha-beta pruning). The most succesful way to ameliorate this problem is by QS, in general this works much better than statically predicting the outcome of the part of the tactical exchange that would be behind the horizon, or simply ignoring it.
In analogy, the problem that you sketch could be combatted by having a positional QS, where any move that 'captures' a great square (by occupying it) is not automatically awarded in end leaves with a static evaluation, but must allow the opponent the alternative of conquering the square back (by attacking it with a lower-valued piece). Of course you would only do that when positional scoring is likely to be decisive, otherwise you can be lazy and skip it.
Qsearch off coarse solves the big swings, but what I try to do is "soften" scores.
Bad pawn structure in front of your king and I have many pieces: give bonus, the more pieces, the more points (why, not because of a king attack, but because of the possibility of a king attack)
Rook on 7th big score: ==> possibility of a rook to go to 7th also score.
Pawn on 7th is a much bigger score than pawn on 6th. Pawn on 6th that can go to 7th ? score as 6.5th rank.
I think you get the idea. Collecting pieces near the king seems to be in the same group.
The idea behind it is that I'd rather fail low because you appear to be having some kind of king attack with 3 plies remaing to find a new fail high than discover 3plies later I'm loosing a knight in a king attack with 6 plies remaing to find a new fail high.
This way of scoring seems to "prepare" the search for score swings.
Tony