I would think its meaning, like most meanings, would depend on context. I can imagine this being said in a mean way, if they were admiring how you had deviously gotten over on someone. Or, it might also be said in an admiring way, as they admired how machiavellian you are.
It would also depend on your relationship with the person who said it. If they like you, then it is probably a good thing. If you aren’t friends, it probably is not a compliment.
Perhaps he means your thought processes twist and turn. When he thinks he has a sense of what you are talking about, you change direction. Only you would know which of the suggestions here fits you best.
Since you say you are friends – I’d take it as tongue-in-cheek to mean just that – screwy like a corkscrew, however, he may have just made it up… which would be even cooler. (I am not googling it, I am not googling it. Damn – I have to urbandictionary it to be sure.)