Absolutely no clue what will work, whatever works would be perfect.lantonov wrote:How about differentiating those combinations, e.g. giving bonus for each pawn, resuting from the difference between white and black chains? So 5 white - 3 black = bonus for 2 pawns, 4 white - 3 black = bonus for 1 pawn, etc. In cases like 3 white - 5 black = bonus for -2 pawns (i.e, malus for 2 pawns), etc. This would make the code very simple and nevertheless able to differentiate the combinations.Lyudmil Tsvetkov wrote:
So that there are different combinations of long chains: one side having chain of 3 and the other having none, or one side having chain of 4 and the other having none, or one side having chain of 5 and the other having chain of 3, etc.
Sure, rank and king proximity are important, but those require additional code.
I have seen in the framework one and the same concept implemented in 2 different ways: the one fails with a bang, while the other succeeds.
So that tiny implementation details might solve difficult puzzles.