A while back I actually programmed a baddy that fights a lot like a player, its on testbed.
Its a bit buggy and made back when I didn't know much about coding but it worked great.
If I ever get a gold subscription again I might reprogram it, but I have no desire to pay for gold.