Coder Social home page Coder Social logo

underclock_stats's Introduction

Underclock

A simulator for the Underclock dungeon crawling mechanic originally suggested by Arnold Kemp in their Goblinpunch Blog.

This improved implementation speeds up the computation substantially, while performing 100x more samples. It also compares Arnold's original rule to several alternates of my own devising.

Goblinpunch Underclock Rule

  • Ticks repeat on a Max roll (6 for d6)
  • Encounter triggered when clock goes negative.
  • Clock resets to 3 when it reaches exactly zero
  • Omens triggered when clock == 3

Alternative Underclock Rules

  • Ticks repeat on a Max roll (6 for d6)
  • Encounter triggered when clock reaches zero (or goes negative.)
  • Clock resets to x whenever below x but still running
  • Omens triggered when clock <= x

Classic rule

  • Encounter triggered when roll == 1
  • Omen triggered when roll == 2

Below are the plots comparing the original rule to my alternate rules with different values of x, and for different sizes of dice. With these results I believe my "Alt 3" rule, where x == 3, is the my prefered improvement over the original rule. It maintains the same distribution and a similar mean number of rolls-till-encounter as the original rule, but foreshadows encounters more frequently (which I like) while resetting the clock more frequently, keeping the exact moment of encounter more uncertain than in the original.

Also included is the classic rule of rolling for random encounters on every tick/turn.

Distribution with a D6 Distribution with a D8 Distribution with a D10 Distribution with a D12 Distribution with a D4

underclock_stats's People

Contributors

areustle avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.