Available playersTop players Chat Forum External sites: Wiki
|
|
|
|
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 |
|
|
|
|
|
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. |
|
|
|
|
|
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):
|
|
|
|
|
|
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 |
|
|
|
|
Good, that's more important to me, too :] |
|
|
|
|
|
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 |
|
|
|
|
|
I get a document not found on that link.
-- Henry |
|
|
|
|
| https://docs.google.com/leaf?id=0B32AFMUrTSpYODZhNGNhMTktY2IzZi00MmUwLWI1YmEtNmNjZjE4NDMxYTBl&sort=name&layout=list&num=50 | |
|
|
|
| i tried changing the share settings. try it again. | |
|
|
|
|
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. |
|
|
|
|
|
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 |
|
|
|
|
| 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. | |