This was intended for the creators / coders ...
Where to Start? You/your (Hereinafter this game) establish all the limits of each unit on the battlefield... attack values, defense values, movement limits -pus bonus values for attack & defense. Then once battle begins you invalidate everything...