Skip to content

kevinleung96/python-slot-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Python Slot Machine Game

Welcome to Python Slot Machine Game! This is a simple console-based slot machine game implemented in Python.

Table of Contents

Overview

This Python script implements a basic slot machine game where players can place bets, spin the reels, and win payouts based on the combinations of symbols displayed on the reels. The game provides interactive prompts for the player to place bets and play again, with warnings for invalid inputs.

Features

  • Random Symbol Generation: The slot machine randomly generates symbols for each reel.
  • Payout Calculation: Payouts are calculated based on the combinations of symbols displayed on the reels.
  • Interactive Gameplay: The game provides prompts and warnings to guide the player and handle invalid inputs.
  • Blinking Warning Messages: Warning messages appear and disappear in a blinking manner for better user interaction.

Getting Started

To play the Python Slot Machine Game, follow these steps:

  1. Clone the repository to your local machine:

    https://github.com/kevinleung96/python-slot-machine.git
  2. Navigate to the project directory:

    cd python-slot-machine
  3. Run the main.py script:

    python main.py

How to Play

  • When prompted, enter the amount you want to bet.
  • Follow the on-screen instructions to play again or exit the game.
  • Enjoy the excitement of spinning the reels and winning payouts!

Game Mechanics

  • The slot machine has 3 reels, each displaying a random symbol from the set of symbols: πŸ’ πŸ‰ πŸ‹ πŸ”” ⭐.
  • Payouts are awarded based on combinations of matching symbols on the reels.
  • The game continues until the player decides to quit or runs out of balance.

Contributing

Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages