首页> 外文会议>Practical Aspects of Declarative Languages >Roll: A Language for Specifying Die-Rolls
【24h】

Roll: A Language for Specifying Die-Rolls

机译:胶卷:一种指定死模的语言

获取原文

摘要

Role-playing games (RPG's) use a variety of methods for rolling dice to add randomness to the game. In the simplest form, a small number of identical dice are rolled and added, but more advanced forms involve cumulative re-rolling of 6's, doubling the value of doubles, removing the lowest or highest result or counting the number of dice that are below a threshold, and many other weird and wonderful modifications. While die-roll programs and net-based die-roll servers exist, they can usually only handle the simplest form of die-rolls. This paper describes Roll, a simple functional language for defining how dice are rolled. Such definitions are then used to emulate die-rolls or make probability calculations. We describe two different semantics for Roll: One that corresponds to randomly rolling the dice and one for calculating the probability distribution. We discuss implementation issues regarding the latter.
机译:角色扮演游戏(RPG)使用多种方法来掷骰子,以增加游戏的随机性。最简单的形式是滚动并添加少量相同的骰子,但更高级的形式包括累加重新滚动6的值,使double的值翻倍,删除最低或最高的结果或计算低于a的骰子数门槛,以及许多其他奇怪而美妙的修改。虽然存在die-roll程序和基于net的die-roll服务器,但它们通常只能处理最简单形式的die-roll。本文介绍了Roll,这是一种用于定义骰子滚动方式的简单功能语言。这些定义然后被用来模拟掷骰或进行概率计算。我们为Roll描述了两种不同的语义:一种对应于随机滚动骰子,另一种用于计算概率分布。我们讨论有关后者的实施问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号