Giter Club home page Giter Club logo

edice's Introduction

edice Repository

This is a simple demo for using Docker to containerize a normal console Python app. The Docker image is here on Docker Hub. To use this (assuming you have a working Docker installation on your machine) do the following:

  • docker pull gchadder3/edice to pull the image from Docker Hub. (This is optional; the next command will pull from Docker Hub if you don't have the image on your local machine.)
  • docker run -i -t gchadder3/edice to run the application. (-i = interactive mode, -t = terminal mode)

To install from this repo

  • git clone https://github.com/gchadder3/edice.git
  • cd edice
  • docker build -t edice . to build the Docker image (edice).
  • docker run -i -t edice to run it. The beauty is that you don't have to have Python installed on your machine to run this Python code. Of course, if you do have Python installed, you could also do python edice.py to run it.

The application itself is a simple text console application that may be used for games that require dice, including, for example, polyhedral dice such as are used in paper-based role-playing games such as Dungeons & Dragons. It starts the user off with a regular die (1d6) and the user can keep rolling the dice or switch to other dice settings (e.g. 3d8: 3 dice of 8 sides each).

edice's People

Contributors

gchadder3 avatar

Watchers

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