Giter Club home page Giter Club logo

dice_roll_genrator's Introduction

Dice Roll Generator

Table of Contents:

Description

This Python script generates and displays a random dice roll for one or two dice.

Installing and Running

  1. Download or clone the repository.
  2. Check that Python3 is installed.
  3. Launch the terminal or command prompt and navigate to the directory containing the script.
  4. Run the script in the terminal by typing python3 dice_roll.py..

How to Use

  1. When prompted, enter the number of dice you want to throw. The only valid answers are "1" or "2."
  2. If you roll two dice, both the individual die values and the sum will be shown.
  3. You will be asked to roll once again once the results are displayed. Enter "yes" or "y," or any other key to depart, to roll once again.

License

MIT License applies.

How to Contribute

Contributions are not presently required for this code, although they are much welcomed. You may clone the repository and make your own changes if you want to. If you want to share your improvements with the community, submit a pull request.

Additional Points

To make the output simpler to read, the script clears the terminal screen after each roll. The script will alert the user to supply a valid input if an invalid one is given for the number of dice to be rolled. Just six-sided dice are used in the script.

Conclusion

This is a simple Python script for producing random dice rolls for use in games or other tasks. Feel free to change and improve it as required.

dice_roll_genrator's People

Contributors

xzebcex 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.