How to make a Basic 2d fighting A.I. like street fighter?

I want to know how to make my 2d fighting game’s A.I. move punch defend and do other things like a real man.