Third year of CS, plus lots and lots of self-study.
You need a few years of formal education, I think, to cover basics you wouldn't bother with on your own but which turn out to be important. Too many self-proclaimed ``autodidacts'' turn out to have gross deficiencies in basic areas.