User:SolaceEaSw/Algo

Algo:

Pre-War Campaign

 * Attacker Name: Total Score
 * Population: Score
 * Government: Score
 * Economy: Score
 * Technology: Score
 * Defender Name: Total Score
 * Population: Score
 * Government: Score
 * Economy: Score
 * Technology: Score

War Campaign

 * Attacker Name: Total Score
 * Army/Navy Size: Score (Troop's sent/Total troop number)
 * Location: Score
 * Blunder: Score
 * Defender Name: Total Score
 * Army/Navy Size: Score
 * Location: Score
 * Blunder: Score

Results

 * Attacker Name: Total Combined Score
 * Casualties: Losses. Remaining.
 * Defender Name: Total Combined Score
 * Casualties: Losses. Remaining.
 * Difference: Tier/Success

Population

 * <1,000,000: +3
 * 1,000,000-3,500,000: +5
 * 3,500,000-5,000,000: +7
 * 5,000,000-10,000,000: +10
 * >10,000,000: +12

Government

 * Post-Enlightenment Government Forms
 * Revolutionary Republic (Not possible until Enlightenment | Not permanent): +15
 * Federal Republic: +13
 * Democratic Republic: +12
 * Dictatorship: +11
 * Enlightened Monarchy: +10
 * Pre-Enlightenment Government Forms
 * Absolute Monarchy: +8
 * Parliamentary Monarchy: +7
 * Constitutional Monarchy: +7
 * Elective Monarchy: +6
 * Theocracy: +5
 * Oligarchy/Council: +5
 * Merchant Republic (Venice): +3
 * Feudal Monarchy: +3

Economy & Technology

 * Tier I: +3
 * Tier II: +5
 * Tier III: +7
 * Tier IV: +10

Army Scoring

 * .025 per 1000 men (untrained)
 * .03 per 1000 men (conscripted)
 * .1 per 1000 men (trained)

Navy Scoring

 * .3 per 10 boats

Army/Navy Size

 * Army Size:
 * Democracies: .4 times pop
 * Dictatorships: .5 times population
 * Absolute Monarchies: .15 times population
 * Parliamentary Monarchies: .1 times population
 * Enlightened Monarchies: .1 times population
 * Constitutional/Elective Monarchies: .09 times population
 * Navy Size:
 * Navally concentrated (Venice):
 * Regular Nations:

Location
Attacker Defender
 * Unexpected invasion: +9
 * Near/at city: -2
 * Near/at major city: -4
 * Near/at center of government: -7
 * Near/at major river or coast: -3
 * Near/at religious site: -5
 * Near/at desolate location: -0
 * Near/at mountanous region: -10
 * Unexpectantly invaded: -6
 * Defending city: +2
 * Defending major city: +4
 * Defending center of government: +7
 * Defending a major river or coast: +3
 * Defending religious site: +7
 * Desolate location: +0
 * Defending in mountains: +12

Blunder
-0 to -10. Done by unbiased moderator.

Results

 * Tier 0/Indecisive: <5
 * Casualties: Both sides lose 5% of army/navy.
 * Tier 1: 5-7 Losing side retreats with minimal casualties.
 * Casualties: Winning = 45% of army/navy, Losing = 55% army/navy
 * Tier 2: 7-10 Losing side retreats with large casualties.
 * Casualties: Winning = 35% of army/navy, Losing = 65% of army/navy
 * Tier 3: 10-13 Winning side gets a decisive victory, suffering minimal casualties.
 * Casualties: Winning = 25% of army/navy, Losing = 75% of army/navy
 * Tier 4: 13+ Winning side establishes complete control over losing side's area. Overly decisive victory with little to none casualties.
 * Casualties: Winning = 10% of army/navy, Losing = 90% of army/navy

Complete Algorithm Example
Pre-War Campaign War Campaign Results
 * Bavaria: 23
 * Population: +5 (1,500,000)
 * Government: +8 (Absolute Monarchy)
 * Economy: +5 (Tier II)
 * Technology: +5 (Tier II)
 * Saxony: 17
 * Population: +5 (1,000,000)
 * Government: +6 (Elective Monarchy)
 * Economy: +3 (Tier I)
 * Technology: +3 (Tier I)
 * Bavaria: -3
 * Army/Navy Size: +5 (50,000/225,000)
 * Location: -2
 * Blunder: -6
 * Saxony: +1.09
 * Army/Navy Size: +.09 (30,000/90,000)
 * Location: +2
 * Blunder: -1
 * Bavaria: 23-3=20
 * Casualties: 2500. 47500 remaining.
 * Saxony: 19+1.09=20.09
 * Casualties: 1500. 28500 remaining.
 * Difference: -.09 Tier 0/Indecisive.