Warhammer battle again.
This is a program to simulate an assult between two squads. THat's about it.
Currently this only supports a 1v1 battle. And only Bloodletters.
Current plans
- Add more stats types
- Add factory for unit stats types
- Add support for squads
- Add some kind of IO
- Add logging
- Add option rules
- Allow user to choose what optional rules to use
- Have the optional rules effect the battle
- Mix unit types in a squad
- Add Unit types (HQ, Troop, ELite, Fast Attack, and Heavy Support)
- Add special rules, like when a monstrous creature fights regular sized troops.
What is a Warhammer?
Warhammer (I'm doing this based on Warhammer 40K) is a table top game by Games Workshop. It's fun, but long. Also expensive.
What is this battle simulator? During the game of warhammer 40K, two squads can fight hand-to-hand. I want to simulate that.
How does this hand-to-hand fight work?
The attacks are broken down by initiative. THe higher the initiative the sooner they can attack.
Each attack has the same structure
- Roll to hit
- All rolls that hit, roll them to wound
- All the rools that wounded, the other squad gets to roll to see if they save (ignore) any wounds
- All unsaved wounds are allocated.
- the defending squad removes any models that are dead.
Now, if only one side is attacking the wounds are allocated to the other squad and casualties are removed.
This changes if both sides have the same initiative. than all rolls are done at the same time.
Let's say that both squads have some models with the same intiative. Then all rolls are done at the same time.