<< Back to Programming Forum   Search

Posts 1 - 4 of 4   
What formulae do WL use to calculate army losses?: 2017-08-02 22:52:34


҈ * TeeMee123҈ *
Level 55
Report
Bit of background: I'm making a text-based game similar to warlight, and it involves territories attacking eachother and losing armies.

I'd like to know how warlight works out how many armies will be left in territory A and B after territory A attacks territory B where...

A attacks with x armies (ignoring how many other armies it has), and
B has y armies to defend with.

The result would be that

a armies retreat back to A and
B is left with b armies.

I tried looking at 'analyse attack' for help but i just got extra bamboozled.
What formulae do WL use to calculate army losses?: 2017-08-02 23:48:03

Fizzer 
Level 64

Warzone Creator
Report
It's the very first link on the Help tab.
What formulae do WL use to calculate army losses?: 2017-08-03 06:40:11

(deleted) 
Level 63
Report
There's a couple of examples on https://www.warlight.net/Forum/1120-fixing-cumulative-luck-calculation on the first post.

What language are you using BTW?
What formulae do WL use to calculate army losses?: 2017-08-03 15:23:55


҈ * TeeMee123҈ *
Level 55
Report
I'm using java, its not a really big project, just something to keep me occupied over the summer.
Somehow I didn't think to look on the help tab / wiki
Posts 1 - 4 of 4