Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Pawn Brotherhood by -ninth-
def safe_pawns(pawns):
x="abcdefgh"
y="12345678"
s = 0
for i in pawns:
if i[1] != "1":
if i[0]!='a' and x[x.index(i[0]) -1] + y[y.index(i[1]) -1] in pawns or i[0]!='h' and x[x.index(i[0]) +1] + y[y.index(i[1]) -1] in pawns:
s+=1
return s
Aug. 13, 2017
Comments: