Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
ord solution in Clear category for Pawn Brotherhood by gyahun_dash
def getdiags(pawn):
c, r = map(ord, pawn)
return chr(c - 1) + chr(r - 1), chr(c + 1) + chr(r - 1)
def safe_pawns(pawns):
return len([p for p in pawns if any(d in pawns for d in getdiags(p))])
July 30, 2014
Comments: