02-10-2021, 08:46 PM
(02-10-2021, 08:34 PM)Michael Wrote: Thanks. It was Alpha-Beta. I'll try the negative weight thing to compare. Maybe I should use both. When center value is set to -1, does it make a difference whether corner value is 1 or more than 1?
Err that depends on the board. If you just have a standard square board (like in chess or Go), I think those two heuristics are actually "symmetric", and I would expect (cornerProximity weight:1.0) to have exactly the same behaviour as (centreProximity weight:-1.0). So, combining those two together like that would probably also be the same as just one of them with a weight of 2.0 or -2.0, respectively. And since they're giving the same advice anyway, it wouldn't really matter which magnitudes you use for the weights, only the sign matters. The relative magnitudes only start mattering when you also involve other heuristics, like (score) or (material) or whatever, anything that actually gives different advice.
If you have an asymmetric board it can be very different though.