Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
ford solution in Clear category for Pawn Brotherhood by pevaspok
def safe_pawns(pawns: set) -> int:
safe = set(f'{chr(ord(i[0]) + j)}{int(i[1]) + 1}' for i in pawns for j in (-1, 1))
return len(safe & pawns)
Dec. 14, 2020