Computer Player/ Bot - Help (Flash 8)

Hello,

I am trying to make a game just like CHAOS FACTION, but much more simple. I have everything done correctly, but I have no idea how to make a computer player/bot. Is there a way to do this without 1M lines of coding?

Thanks,

jhallen