Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Pawn Brotherhood by Razzerrer
def safe_pawns(pawns):
safe_places=[]
all_pawns=list(pawns)
place1=""
place2=""
for position in all_pawns:
place1+=str(chr(ord(position[0])-1))+str(int(position[1])+1)
place2+=str(chr(ord(position[0])+1))+str(int(position[1])+1)
safe_places.append(place1)
safe_places.append(place2)
place1, place2 = "", ""
safe=[]
for i in safe_places:
if i not in safe:
safe.append(i)
i,j,a = 0,0,0
while i
Nov. 17, 2016