Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Trick with a sum of Trues solution in Clear category for Pawn Brotherhood by fishsouprecipe
def safe_pawns(pawns: set) -> int:
return sum(
any(int(protector[1]) + 1 == int(pawn[1]) and abs(ord(protector[0]) - ord(pawn[0])) == 1
for protector in pawns) for pawn in pawns)
March 6, 2020