Skip to content

blake6489/DiceRolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

README

riskroll.pl will roll the correct number of dice and score them for a given match up of opponents.

(As stated on Wikipedia)

The attacking player attacks with one, two, three or more armies, rolling a corresponding one, two or three die. At least one army must remain behind in the attacking territory not involved in the attack, as a territory may never be left unoccupied. The defending player must resist the attack with one or two armies (using at most the number of armies currently occupying the defended territory) by rolling a corresponding one or two die. The attacker's highest die number is compared against the defender's highest die. The highest number wins, with the defender winning in the event of a tie. The attacker's next highest die is compared against the defender's second-highest die (assuming the defender committed a second army). Any extra dice (dice not matched against a defending army) are disregarded and do not affect the results. With each dice comparison, the loser removes one army from his territory from the game board.

About

Dice rolling and scoring for a game such as Risk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages