Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
chr-ord lambda ONE LINE solution in Clear category for Pawn Brotherhood by katnic
safe_pawns = lambda P: sum( [ 1 for p in P if chr(ord(p[0])-1)+str(int(p[1])-1) in P or chr(ord(p[0])+1)+str(int(p[1])-1) in P ] )
Aug. 14, 2021