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.
Simply clone the repository to your computer using the git
command:
git clone https://github.com/hg1233/Dice-Game.git
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.
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.
- 0.0.1
- Documentation Release (Code to be modified and uploaded)
BlueTechFox โ @BlueTechFox https://github.com/hg1233/projects