Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Pawn Brotherhood solution in Clear category for Pawn Brotherhood by Shyrik86
def safe_pawns(pawns):
cnt = 0
for cell in pawns:
if chr(ord(cell[0])-1) + str(int(cell[1])-1) in pawns or \
chr(ord(cell[0])+1) + str(int(cell[1])-1) in pawns:
cnt += 1
return cnt
Feb. 13, 2016