Posts : 562 Reputation : 2159 Join date : 2010-02-03 Location : We often take for granted the very things that most deserve our gratitude. Cynthia Ozick
Subject: Latest aboke builds May 6th Sun May 06, 2018 5:02 pm
The two lines of code in the patch seem to be just as good as master.
1. We now only look at the current square to see if it is currently backward, whereas master looks there AND further ahead in the current file (master would declare a pawn "backward" even though it could still safely advance a little). This simplification allows us to avoid the use of the difficult logic with `backmost_sq(Us, neighbours | stoppers)`.
2. The condition `relative_rank(Us,s) < RANK_5` is simplified away.
• The new code flags some pawns on the 5th rank as backward, which was not the case in the old master. So maybe we should test a version with that included?
• Further tweaks of the backward condition with [0..5] bounds?