02-11-2021, 10:29 AM
Err yeah the 1.0 in the pair is fine. That's the weight per piece type, so both Disc1 and Disc2 get a weight of 1.0. But there's also the "global" weight for the heuristic as a whole, which is still set to -1.0. These numbers get multiplied, so in the end it's still -1.0 * 1.0 = -1.0 for both piece types, so they all still get incentivised to minimise proximity to centre.
Equivalently, you could make the "global" weight of the heuristic 1.0, and then the per-piece-type weights would have to be -1.0 :)
Equivalently, you could make the "global" weight of the heuristic 1.0, and then the per-piece-type weights would have to be -1.0 :)