-
Notifications
You must be signed in to change notification settings - Fork 0
Simple Gambling is a command-line interface bot that allows you to play simple games of chance, including dice rolls and coin flips. It is written in Python and uses the random module to generate random outcomes for each game.
Localfailure581/Simple-Gambling
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Simple Gambling Simple Gambling is a command-line interface bot that allows you to play simple games of chance, including dice rolls and coin flips. It is written in Python and uses the random module to generate random outcomes for each game. Features Four different games to play: roll, flip, betroll, and betflip Easy-to-use command-line interface Cross-platform compatibility with both Windows and Unix-based systems Stylish and colorful output with Unicode characters How to Use Install Python 3.x on your system, if it is not already installed. Clone or download the Simple Gambling repository. Navigate to the repository directory in your terminal or command prompt. Run the interface.py file with the command python interface.py. Follow the prompts to select a game and play! Games Roll The roll game generates a random number between 1 and 6, simulating the roll of a single die. The result is printed to the console. Flip The flip game simulates a coin flip and prints the result to the console. The outcome is randomly selected from "heads" or "tails". Betroll The betroll game is similar to roll, but allows you to place a bet on the outcome. If you win, your bet is doubled and returned to you. Betflip The betflip game is similar to flip, but allows you to place a bet on the outcome. If you win, your bet is doubled and returned to you. License This project is licensed under the MIT License. HOW TO SET Clone or download the repository from GitHub. Make sure you have Python 3.x installed on your system. Install the required dependencies by running pip install -r requirements.txt in your terminal or command prompt. Navigate to the root directory of the project and run python create_db.py to create the SQLite database for the bot. Once the database is created, run python main.py to start the bot. The bot will prompt you to enter a command. Type help to see a list of available commands. That's it! You should now be able to use the Simple Gambling bot.
About
Simple Gambling is a command-line interface bot that allows you to play simple games of chance, including dice rolls and coin flips. It is written in Python and uses the random module to generate random outcomes for each game.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published