I think you need practice, I almost always beat the computer.
Castle Wars is rigged. The computer is set up to win the majority of the times. The games are fixed. I no longer play.