Knight move sorted by enohIO

r=range(-2,3)
while 1:a,b=raw_input();print" ".join([chr(i)+`j`for(i,j)in[(x+ord(a),y+int(b))for x in r for y in r if abs(x*y)==2]if 0<j<9<i-87<18])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page