Available playersTop players Chat Forum External sites: Wiki

«

henryci

Trooper

Offline

Hi guys,

I'm working towards a Weewar bot and as a result I have a lot of half-finished tools I've built. Rather than let unfinished projects rot I'm attempting to do the absolute minimum work required to make them usable by others.

And so, here is my results calculator:
http://www.henrycipolla.com/pub/combat.html

Please note that it is slightly optimistic because of the way the game treats fractional results.

-- Henry

RockyDog

Berserker

Offline

Henry -

The game mechanics truncate all calculations. i.e. if a result would deal 9.7 damage to a unit then the result is a 9. Mathematically speaking this is the floor function.

There is a long standing battle damage calculator at http://www.plutosforge.com/blog/projects/weewar-battle-simulator if you want to compare your results to the existing tool. It is hosted by a long gone weewarrior.

Shulgin

Tank

Offline

Hi henryci,
Many thanks for your absolute minimum effort I think it’s great to have another battle simulator; pluto’s could do with a small update. If I may make a few improvement suggestions (in addition to RD’s):

  • It would be great to see probabilities rather than just the expected value. Perhaps a simple html table with columns 1 to 10 (see pluto’s website).

  • There are two things pluto’s battle simulator doesn’t offer. First one is bridges which you have, so that’s great. The second thing is calculating results for capturing hovers. The stats are actually different for capturing troopers and capturing hovers and the calculations on pluto’s site are for troopers.
  • henryci

    Trooper

    Offline

    Thanks for the feedback everybody. I didn't even realize there was an existing one. I will definitely update mine accordingly.

    (Although I'm really focused on getting a working AI out the door).

    -- Henry

    fn0000rd

    Raider

    Offline

    henryci wrote:(Although I'm really focused on getting a working AI out the door).


    Good, that's more important to me, too :]

    beetstreet

    Heavy Trooper

    Offline

    henry,

    i put together an excel file for damage calculations/probabilities. is there any way you could format it to be like your webpage?

    https://docs.google.com/leaf?id=0B32AFMUrTSpYODZhNGNhMTktY2IzZi00MmUwLWI1YmEtNmNjZjE4NDMxYTBl&sort=name&layout=list&num=50

    henryci

    Trooper

    Offline

    I get a document not found on that link.

    -- Henry

    beetstreet

    Heavy Trooper

    Offline

    https://docs.google.com/leaf?id=0B32AFMUrTSpYODZhNGNhMTktY2IzZi00MmUwLWI1YmEtNmNjZjE4NDMxYTBl&sort=name&layout=list&num=50

    beetstreet

    Heavy Trooper

    Offline

    i tried changing the share settings. try it again.

    beetstreet

    Heavy Trooper

    Offline

    pluto's is much prettier than mine, but i got bridges and capturing hover in there. for capturing units, you have to select the terrain as "capturing" and it will apply a -4 defense.

    select units and terrain in the drop down lists, plug in your own health and bonus, and answer yes or no to retaliation.

    the results are expressed as damage dealt instead of units left. i hope it helps with bot dev.

    henryci

    Trooper

    Offline

    I haven't had a chance to look at this yet (busy trying to roll something out for work). Are you using the binomial theorem to accurately compute the values, or are you using the same approximation algorithm I used in my javascript?

    -- Henry

    beetstreet

    Heavy Trooper

    Offline

    yeah, it's binomials or something. i haven't done proper math in about 15 years, but i did a rough and dirty on excel with factorials and sums to calculate the right damage probabilities.