Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Pawn Brotherhood by spoty
def safe_pawns(pawns):
b = [(ord(p[0]) - 97, int(p[1]) -1) for p in pawns]
return len([x for x in b if (x[0]-1, x[1]-1) in b or (x[0]+1, x[1]-1) in b])
Oct. 17, 2014
Comments: