Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Complex solution in Creative category for Pawn Brotherhood by mikra
def safe_pawns(pawns: set) -> int:
pawns = {ord(p[0]) + ord(p[1]) * 1j for p in pawns}
return sum(p - 1 - 1j in pawns or p + 1 - 1j in pawns for p in pawns)
April 8, 2019
Comments: