## Abstract

Dice are used in many games, and often in fairly complex ways that make it difficult to unambiguously describe the dice-roll mechanism in plain language.

Many role-playing games, such as Dungeons & Dragons, use a formalised notation for some instances of dice-rolls. This notation, once explained, make dice-roll descriptions concise and unambiguous. Furthermore, the notation has been used in automated tools for pseudo-random dice-rolling (typically used when playing over the Internet).

This notation is, however, fairly limited in the types of dice-rolls it can describe, so most games still use natural language to describe rolls. Even Dungeons & Dragons use formal notation only for some of the dice-roll methods used in the game. Hence, a more complete notation is in this paper proposed, and a tool for pseudo-random rolls and (nearly) exact probability calculations is described.

The notation is called "Troll", combining the initial of the Danish word for dice ("terninger") with the English word "roll". It is a development of the language Roll described in an earlier paper. The present paper describes the most important features of Troll and its implementation.

Original language | English |
---|---|

Title of host publication | Proceedings of the 2009 ACM symposium on Applied Computing : Programming Language Track |

Number of pages | 6 |

Publisher | Association for Computing Machinery |

Publication date | 2009 |

Pages | 1910-1915 |

ISBN (Print) | 978-1-60558-166-8 |

DOIs | |

Publication status | Published - 2009 |

Event | The 2009 ACM symposium on Applied Computing (SAC '09) - Honolulu, United States Duration: 9 Mar 2009 → 12 Mar 2009 Conference number: 24 |

### Conference

Conference | The 2009 ACM symposium on Applied Computing (SAC '09) |
---|---|

Number | 24 |

Country/Territory | United States |

City | Honolulu |

Period | 09/03/2009 → 12/03/2009 |

## Keywords

- Faculty of Science
- Programming languages
- Probability calculation
- Games