Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Pawn Brotherhood by makosharkdb
def safe_pawns(pawns):
safe = 0
for i1 in pawns:
ok = [1 for i2 in pawns if i2 ==chr(ord(i1[0])-1) + chr(ord(i1[1])-1) \
or i2 ==chr(ord(i1[0])+1) + chr(ord(i1[1])-1)]
if len(ok)>0:
safe += 1
return safe
Dec. 25, 2017