Finally got around to finishing this baby off:

Now being it's version 1.0 it doesn't have a lot of super intelligence going on - there's some basic logic to reduce defenses due to castles rule, there's some logic to account for 3-phase battles, and it's pulling base stats for units. It isn't setup to calculate special abilities or strategies or buildings or spell effects or tech. Maybe I will incorporate those if there's continued interest. So for now, some special types of units might be useless to put in like Caragous.
I kinda wanna get an image of a scroll for the popup modal background, that will prolly be my next tweak lol
Anyhoo, it's pretty simple to use. I set it to auto pull your race and put max units from your garrison to start. Then you can put what you want in the defenders side, then the advisor will run the numbers and give you his advise on outcome. There's 5 stages of outcomes and each has various messages which I will be adding to for fun.
I took the opportunity to add some fun JS for the mobile version, like you can swipe left/right to increase/decrease the count on each unit type - it will start counting in larger/faster increments the further you swipe too. Also setup my input boxes to tell phones to open the Large Numeric Keypad instead of the normal keypad, make it easier to input numbers if you just click on the box.
I'm gonna make one of the advisor messages say you're gonna get your ass cheeks clapped lol 😃