Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
__ solution in Clear category for Pawn Brotherhood by Cjkjvfnby
# migrated from python 2.7
def get_defenders(pawn):
x, y = list(map(ord, pawn))
return '%c%c' % (x - 1, y - 1), '%c%c' % (x + 1, y - 1)
def safe_pawns(pawns):
return sum(not pawns.isdisjoint(get_defenders(x)) for x in pawns)
Aug. 5, 2014
Comments: