This is your job as a game designer.
You have to create the world of the game and its rules in your head.
And when all the conditions and rules are known, the programmer can turn it into code.
As for your specific task, there is too little data.
-how often a soldier attacks
-how much health he has
-how much armor he has
-his movement speed during the day and night
-his range of fire day and night
-the effect of bonuses.
All of these are taken into account when calculating each move and attack.
When you can write down one battle in a notebook, then you can program it into the engine.