Giter Club home page Giter Club logo

cthulhucmd's Introduction

cthulhu_cmd

Command line tool that provides useful commands in the context of the pen and paper game Cthulhu.

Installation

  1. git clone https://github.com/tsabelmann/cthulhu_cmd
  2. cd cthulhu_cmd
  3. poetry install
  4. poetry run cthulhu

Usage

The Cthulhu command line tool, in form of a REPL, provides two commands: roll and probe. The roll command allows the throwing of dice and the subsequent summation and addition of optional values. The probe command allows the check of ones ability against one thrown D100 with or without additional bonus or malus dice.

Dice Syntax

A regular dice throw is specified by the amount of dice you want to throw and the dice eyes. The most common dice eyes are 100, 20, 12, 10, 8, 6, 4, and 3.

Examples

  • 1d100
  • 2D100
  • 1w20
  • 3W10
  • 1d8
  • 6D6
  • 1W4
  • 2w3

Disclaimer

The letters w and W can be used as a shortcut because the german word for die or dice is Würfel.

Value Syntax

Values to be added to the final sum consists of a sign, and a value part.

Examples

  • +2
  • -3

Examples

  • roll 1d100
  • roll 2d100 1d10 1d8 1d6 1d4 1d3
  • roll 1d20 +3
  • roll 1d20 +1+2+3
  • probe 50 \\ neither bonus nor malus is applied
  • probe 50 b 1
  • probe 50 B 1
  • probe 50 bonus 1
  • probe 50 m 1
  • probe 50 M 1
  • probe 50 malus 1
  • probe 50b1
  • probe 50B1
  • probe 50 b1
  • probe 50B 1
  • probe 50 BOnUs 1
  • probe 50m1
  • probe 50M1
  • probe 50 m1
  • probe 50M 1
  • probe 50 MAlUs 1

Acknowledgement

The command line tool requires the installation of Poetry.

cthulhucmd's People

Contributors

tsabelmann avatar

Stargazers

 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.