Re: Anyone want to help with the combat simulator?
Sample output:
C:\Projects\Java\Dominions>java Fight Soulless_Warrior_2 TC_Pike_Footman 100000
'Soulless Warrior 2' versus 'TC Pike Footman' in 100000 deathmatch bouts.
Attacker's score: 500
'Soulless Warrior 2' versus 'TC Pike Footman' in 100000 gladiator bouts.
Attacker's score: 499
'Soulless Warrior 2' versus 'TC Pike Footman' in 100000 gauntlet bouts.
Attacker's score: 483
C:\Projects\Java\Dominions>java Fight Soulless TC_Pike_Footman 100000
'Soulless' versus 'TC Pike Footman' in 100000 deathmatch bouts.
Attacker's score: 36
'Soulless' versus 'TC Pike Footman' in 100000 gladiator bouts.
Attacker's score: 36
'Soulless' versus 'TC Pike Footman' in 100000 gauntlet bouts.
Attacker's score: 127
C:\Projects\Java\Dominions>java Fight TC_Pike_Footman Soulless 100000
'TC Pike Footman' versus 'Soulless' in 100000 deathmatch bouts.
Attacker's score: 963
'TC Pike Footman' versus 'Soulless' in 100000 gladiator bouts.
Attacker's score: 963
'TC Pike Footman' versus 'Soulless' in 100000 gauntlet bouts.
Attacker's score: 872
C:\Projects\Java\Dominions>java Fight Militia Soulless 100000
'Militia' versus 'Soulless' in 100000 deathmatch bouts.
Attacker's score: 880
'Militia' versus 'Soulless' in 100000 gladiator bouts.
Attacker's score: 880
'Militia' versus 'Soulless' in 100000 gauntlet bouts.
Attacker's score: 784
C:\Projects\Java\Dominions>java Fight Heavy_Infantry_3 Ulm_Infantry_5 100000
'Heavy Infantry 3' versus 'Ulm Infantry 5' in 100000 deathmatch bouts.
Attacker's score: 276
'Heavy Infantry 3' versus 'Ulm Infantry 5' in 100000 gladiator bouts.
Attacker's score: 275
'Heavy Infantry 3' versus 'Ulm Infantry 5' in 100000 gauntlet bouts.
Attacker's score: 414
C:\Projects\Java\Dominions>
Notes:
"Deathmatch" means after the fight is won, both sides are replaced with fresh units.
"Gladiator" is currently the same as Deathmatch.
"Gauntlet" means when a unit dies, it is replaced, but the opponent remains (with the same fatigue and health).
The score is on a scale of 0 to 1000, with 0 meaning the attacker dies every time and the defender never dies, and 1000 meaning the opposite. 500 means each side gets the same number of deaths (and thus they are evenly matched). Obviously, it is harder to get a score of 1000 in Gauntlet because your HP and fatigue do not get replenshed until you die!
For any two units, the score of (A vs B) should always be 1000-(B vs A), for all 3 modes.
The number of rounds is not important - the score is always out of 1000, but more rounds give a better accuracy.
-Cherry
|