How do you simulate a battle?

Can you answer this question?