Git Product home page Git Product logo

dice-game's Introduction

Python Dice Game

A simple Python dice game which uses player authentication.

This script is a simple dice game which allows 2 players to randomly roll dice together. The script uses a basic level of authentication, refusing any users who do not input the correct credidentails listed in the text file. This is a very insecure method of authentication, however it was a basic project.

This project was originally a task for the OCR GCSE Computer Science Programming Project, however the task is no longer worth any marks. This was a simple project to advance my skills in authentication, of which I didn't spend a lot of time on.

The code is messy, I know that, but I am constantly making changes and if you see something in my code which doesn't work or could be done less intensively, please let me know.

Installation

Simply clone the repository to your computer using the git command:

git clone https://github.com/hg1233/Dice-Game.git

Usage example

The script runs out of the box, simply clone the repository then run the code. You may modify the accountsfile.txt to either view or create your own credidentials for the script. The format for creating credidentials is as follows:

<username> <password> <name>

If you have done it correctly, it should match the same formatting as the example registered users.

For more examples and usage, please refer to the Wiki.

Development setup

The code runs off of many global variables. This, as well as some other things, makes the code very messy. If you wish to adapt this code, feel free to request any changes that could improve the code.

Release History

  • 0.0.1
    • Documentation Release (Code to be modified and uploaded)

Meta

BlueTechFox โ€“ @BlueTechFox https://github.com/hg1233/projects

dice-game's People

Contributors

hg1233 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

p4njul

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.