Merge pull request #2 from a-temlyakov/master

Refactored for loop and ran 'fmt' on both files
added dice_war
changed formatting
Merge pull request #3 from Akavall/dice_war

I tested; it seems to be working for basic cases. I have not even looked at it for no positive integers, and I am sure this goes wrong on overflows.
Merge pull request #1 from Akavall/master

Sync with master