AI enemy tank

I need some idea or pseudocode to move an enemy tank ( to kill my tank).

I cant only use moveforward, moveback, turnright and turn left and fire… So i have to use line trace ( if you aproach to a wall, or to enemy for example) in a event tick to show continuous movement ( as i think it has to be)… Any ideas would be apreciate… dont have to be a very difficult one, just the tank has to move and if it possible fire some bullets…

Thanks in advance.