Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- knight(x)=select(r->((abs(r[1]-x[1])==1&&abs(r[2]-x[2])==2)||(abs(r[2]-x[2])==1&&abs(r[1]-x[1])==2))&&[r[1],r[2]]!=[x[1],x[2]],setbinop((x,y)->concat(x,y),[1,2,3,4,5,6,7,8],[1,2,3,4,5,6,7,8]))
Add Comment
Please, Sign In to add comment