Algorithm (Who owns Spain? Map Game)

Location
Location goes by location of battle.

at the location of the battle:+5

next to the location of the battle:+4

close to the location of the battle:+3

far from location of the battle (at least a continent away):+1

other side of the world:-1

Antarctica: 0

Tactical Advantage
attacker's advantage: +1

Near capital:+6

Near Base of operations:+5

Near a city:+3

In a civilized area:+1

In an uncivilized area:-5

Colonial War:+5

Expansion War:+2

Casus Belli
Provoked:+8

Dynastic Claim:+5

Life or death:+15

Religious:+11

Social War:+8

Political Motive:+6

Economic Motive:+4

None:-10

Untrue:-5

Belligerents
L for leader (+6)

M for military aid (+4)

S for supplies (+2)

V for vassalization or subordination (+1)

W for withdrawal (-5).

So a list of belligerents read like China (L)

Zhuang Warlords (MVW)

Japan (M)

Korea (MW)

Hawaiian rebels (MV)

Mali (SW)

creating a score of 11

Strength
country has developed military:+1 for each turn during military upgrades

expansion: -1 for every turn expanded except through war

Army Size:+1 per 500 men

Navy Size:+1 per 50 sailors (only counts in a naval battle)

Chance
Random.org chance will be added to this score

Location
Location goes by location of battle.

at the location of the battle:+5

next to the location of the battle:+4

close to the location of the battle:+3

far from location of the battle (at least a continent away):+1

other side of the world:-1

Antarctica: 0

Tactical Advantage
defender's advantage: +3

Near capital:+10

Defending Base of operations:+7

Defending a city:+5

Defending a civilized area:+3

Defending an uncivilized area:+1

Casus Belli
Life or death:+19

Religious:+13

Social War:+9

Political Motive:+7

Economic Motive:+5

Belligerents
L for leader (+6)

M for military aid (+4)

S for supplies (+2)

V for vassalization or subordination (+1)

W for withdrawal (-5).

So a list of belligerents read like China (L)

Zhuang Warlords (MVW)

Japan (M)

Korea (MW)

Hawaiian rebels (MV)

Mali (SW)

creating a score of 11

Strength
country has developed military:+1 for each turn during military upgrades

expansion: -1 for every turn expanded except through war

Army Size:+1 per 500 men

Navy Size:+1 per 50 sailors (only counts in a naval battle)

Civil Unrest:-7 per year it has been there

Chance
Random.org chance will be added to this score

Other Info
Bonus Stability Points added randomly

A margin of over 40% in 5 battles collapses the opposing leader.The remaining nations may choose a new leader though.