I've written this program for my own amusment. I hope you like it too, and if so, please drop me a line and let me know what you've done with it, or how you used to it to pwn ur buddy, or feedback on what would make CCMathHammer better.

Tips are always appreciated!

In Action!

Here's an example of my 20 Ork Boyz assaulting in on 10 Necron Warriors. You can mouse over the abbreviations to see what they mean. I've entered in all the important stats that I found on the GW website (so PLEASE do sue me for publishing your IP! PLSPLSPLS!) and ticked the appropriate check boxes, in this case I'm assaulting in and my units have Furious Charge.

Clicking the "HAMMER!" button will run the maths and spit out the results:

Assaulting with Furious Charge!  You get +1 initiative.

YOU ATTACK FIRST!!

Attacker WS:		4
Target WS:		4
To Hit Roll:		4+
To Hit Odds:		1:2
To Hit Percent:		50%

Assaulting with Furious Charge!  +1 strength

Attacker S:		4
Target T:		4
To Wound Roll:		4+
To Wound Odds:	1:2
To Wound Percent:	50%

To Hit & Wound Odds:	1:4
To Hit & Wound Percent:	25%

To Save Odds:		2:3
To Save Percent:	67%
To Not Save Odds:	1:3
To Not Save Percent:	33%

To Hit & Wound & Not Save Odds:	1:12
To Hit & Wound & Not Save Percent:	8%

Assaulting!  +1 attacks

Number of Attacks:		3
To Hit & Wound & Not Save X attacks Odds:	1:4
To Hit & Wound & Not Save X attacks Percent:	25%

Average Wounds Applied Per Model:	0.25
Number of Models in attacking Unit:	20
Total Average Wounds Applied:		5
Target Wounds per Models:		1
Models Removed:		5
Leaving Models Remaining:		5
Attacker needs 20 more units (40 total) for positive odds of complete elimination.

Opponent has taken 5 wounds!!
OPPONENT ATTACKS SECOND!!

Attacker WS:		4
Target WS:		4
To Hit Roll:		4+
To Hit Odds:		1:2
To Hit Percent:		50%

Attacker S:		4
Target T:		4
To Wound Roll:		4+
To Wound Odds:	1:2
To Wound Percent:	50%

To Hit & Wound Odds:	1:4
To Hit & Wound Percent:	25%

To Save Odds:		1:6
To Save Percent:	17%
To Not Save Odds:	5:6
To Not Save Percent:	83%

To Hit & Wound & Not Save Odds:	5:24
To Hit & Wound & Not Save Percent:	21%

Assaulting!  +1 attacks

Number of Attacks:		2
To Hit & Wound & Not Save X attacks Odds:	5:12
To Hit & Wound & Not Save X attacks Percent:	42%

Average Wounds Applied Per Model:	0.4166666666666667
Number of Models in attacking Unit:	5
Total Average Wounds Applied:		2
Target Wounds per Models:		1
Models Removed:		2
Leaving Models Remaining:		18
Attacker needs 43 more units (48 total) for positive odds of complete elimination.

You have taken 2 wounds!!
You have won the close combat!  Opponent must fall back!

How d'ya them apples?! Necrons take 5 wounds, Orks take only 2. You can even see the suggestion of the number of units either side would need for a positive chance of total decimation of the other unit. In this case, we'd need 40 Ork Boyz or 48 Warriors. Intereting, huh?

An important thing to remember is that this is only going on probability. So, if you roll less then the average roll, too bad. If you roll higher, then good for you. I don't wanna hear your whining when your properly sized unit gets decimated cause you rolled 1's. Suck it up, sissy.