Skip to content

Saksham2138/scm_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Slot Machine Game

This is a simple slot machine game developed using Python and Pygame. The game allows players to spin the reels, select the number of lines to bet on, and set their bet amount per line. The objective is to match symbols on the selected lines to win rewards.

Features

  • Adjustable number of lines to bet on (1 to 3 lines).
  • Customizable bet amount per line ($1 to $1000).
  • Simulates a slot machine spin with various symbols.
  • Calculates and displays winnings based on matched symbols.

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Clone the repository:
    • git clone https://github.com/yourusername/slot-machine-game.git
    • cd slot-machine-game
  2. Install Pygame:
    • pip install pygame

Usage

  1. Run the game:
    • python slot_machine_game.py
  2. Controls:
    • SPACE: Spin the reels.
    • RETURN: Set the number of lines to bet on.
    • BACKSPACE: Set the bet amount per line.
    • Q: Quit the game.

How to Play

  1. Start the game by running the slot_machine_game.py script.
  2. Set the number of lines to bet on by pressing RETURN and entering a value between 1 and 3.
  3. Set the bet amount per line by pressing BACKSPACE and entering a value between $1 and $1000.
  4. Press SPACE to spin the reels.
  5. The game will display your current balance, the amount won, and the lines you won on.
  6. Press Q to quit the game at any time.

Notes

  • Ensure that you have Pygame installed before running the game.
  • The game interface uses text prompts for input and runs in a Pygame window with basic graphics.

License

This project is licensed under the MIT License.

Author

  • Saksham
  • Mahie
  • Sanjil

Enjoy the game and good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •