Exploding die
An exploding die (or exploding dice) is a mechanic that appears in dNetHack. The mechanic originates from various types of tabletop gaming, and allows one or more dice to be rerolled, typically when that die rolls its highest possible number: that number and the result of the successive roll is added to the total, and rerolled dice also qualify for additional rerolls. This theoretically allows the die roll in question to "explode" repeatedly for incredibly high results if one has exceptional luck. Other terms for this include ""open-ended rolling"" and penetration rolls.
In D notation, a common shorthand for exploding dice is to use an exclamation point (e.g. 6d6!).
Description
There are two types of exploding dice: the normal type, as described above, and "lucky" exploding dice, where the result of the damage die rolls are influenced by your in-game Luck - specifically, some low rolls are treated as if they were the maximum roll possible from that die.
Exploding dice are used for the following weapons and attacks in dNetHack, with the exact size of the dice in question varying dependent on the source:
- Attacks using Vorpal Blade, Snickersnee or the Scourge of Lolth, which use normal exploding dice
- The Flourite Octet when thrown, which uses Luck-based exploding dice
- Martial arts attacks while wearing the Grandmaster's Robe, which use normal exploding dice
- Attacks using bare hands while Eurynome is bound, which use normal exploding dice
Strategy
Though in theory a roll for damage with exploding dice has incredibly high potential, in practice exploding dice tend to give much lower returns for bonus damage than one might expect. This does not make it a useless property per se, but players looking to maximize their average damage-per-round will likely prefer builds that grant high damage floors to those with tantalizingly higher damage ceilings.
Calculating exploding dice and averages
For a given exploding die following the standard rules, the expected value follows geometric distribution, and is expressed as:
for a given die plus 1, or alternately as:
where the first set of parenthesis is the is the average damage contributed by each die, and the second set of parenthesis is the average number of times the die explodes.