Available playersTop players Chat Forum External sites: Wiki

«

bmaker

Trooper

Offline

I just want to re-publish my battlelib here. (Originally published in the Weewar tangler group.)

Original post:
Hi all,

a few days ago I found the Weewar Battle Simulator: http://www.plutosforge.com/blog/projects/weewar-battle-simulator

It's a really nice tool. I thought about how to exactly calculate the probabilities for all possible battles' outcomes. And yes, I finally managed to write some python code, which does exactly calculate the battle result probabilities, without having to perform simulations. (Remember: I am not calculating the actual results of a battle (because of randomness), I am calculating the probabilities for all possible outcomes.)

Unfortunately, I do not have a root server or something I could run Django/Python at, to make use of this code. And I am not motivated enough to port it to dirty PHP or something like that.

Moreover I think that it's better, when everybody can see how to build such a calculator. For this reason I publish my code:

http://files.robertnitsch.de/wwbattlelib.zip

License: GPL v2

I hope some tools can profit from my work. Smile

Regards, bmaker


Regards again, bmaker

jpn5000

Heavy Trooper

Offline

Don't suppose you are interested in porting this code to java?

spadequack

Heavy Tank

Offline

If you want, I can post the java port.

jpn5000

Heavy Trooper

Offline

@spadequack: Sure, if you have already ported it, or are planning to port it, and bmaker is cool with it. It would definitely save me a little time and I would appreciate it...

spadequack

Heavy Tank

Offline

i've already ported it. gimme a sec to put the file online

edit: here are the two files: http://www.mediafire.com/?sharekey=a08c8e5600c8730cab1eab3e9fa335ca439577eb8d2653f9

This message was edited 2 times. Last update was at 04/09/2008 21:50:22

jpn5000

Heavy Trooper

Offline

@spadequack: Epic! Thanks!

bert

Staff

Offline

Cool!

bmaker

Trooper

Offline

Of course, you can do everything you like with my code under the terms of the General Public License (Version 2).

Sorry for my unregular answers, but I do not look into these forums very often...