Exploding die

From NetHackWiki
Revision as of 12:28, 3 July 2023 by Umbire the Phantom (talk | contribs) (create so we don't have to pester Chris in the event anyone needs to know what this means)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

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:

(n*(n+3))/(2*(n-1))

for a given die plus 1, or alternately as:

((n+1)/2)  *  (n/(n-1)

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.