Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Pawn Brotherhood by AwkwardSandwich
def safe_pawns(pawns):
unsafe = set(pawns)
for c,r in pawns:
unsafe.discard("".join((chr(ord(c) - 1), str(int(r) + 1))))
unsafe.discard("".join((chr(ord(c) + 1), str(int(r) + 1))))
return len(pawns) - len(unsafe)
Jan. 23, 2015
Comments: