Git Product home page Git Product logo

a-dice-program-for-trpg's Introduction

A-Dice-Program-for-Trpg

多功能骰子模拟器

简介

A-Dice-Program-for-Trpg 是一个简单而强大的命令行工具,旨在为桌面角色扮演游戏(RPG)、决策制定或娱乐活动提供便利的骰子模拟功能。此项目实现了三种核心功能:

  • 投掷 D100:模拟投掷一个 1 到 100 的骰子。
  • 投掷自定义骰子:允许用户指定骰子的面数进行投掷。
  • 安科模式:安科是一种特殊的随机剧情推进模式,常用于创造即兴故事或游戏情节。该功能可以根据用户自定义选项随机选择,便于快速生成故事情节。

功能概览

投掷 D100

使用 -d--Roll_a_D100 参数激活此功能,无需额外输入,即可得到一个 1 至 100 之间的随机数。

投掷自定义骰子

默认功能,使用 -r--Roll_a_Dice 参数(默认激活)。用户可以输入需要的骰子面数和投掷次数。

安科模式

通过 -a--Anko 参数进入安科模式,此模式下程序将从用户自定义选项中做出随机选择,并输出结果。

快速开始

  1. 安装依赖:确保您的系统已安装 Python 3.6+。
  2. 克隆项目:从 GitHub 克隆本仓库到本地。
git clone https://github.com/R-16Bob/A-Dice-Program-for-Trpg
  1. 运行程序:进入项目目录,运行以下命令:
cd A-Dice-Program-for-Trpg
python Dice.py -h # 查看帮助信息

贡献指南

我们欢迎任何形式的贡献,包括但不限于新功能提议、代码优化或文档改进。请遵循以下步骤:

  1. Fork 本仓库。
  2. 在您的分支上 Commit 变更。
  3. 提交 Pull Request 并详细说明您的更改。

许可证

A-Dice-Program-for-Trpg 遵循 MIT 许可证发布,意味着您可以自由地使用、复制、修改、合并、出版、分发、再授权,以及/或者贩售软件的副本,只要您遵守许可证内的条款。

a-dice-program-for-trpg's People

Contributors

r-16bob 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.