Skip to content

This is a Python program that simulates a simple slot machine game.

Notifications You must be signed in to change notification settings

Rakshitha-ks/Python-Slot-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Slot Machine

Spin the virtual slot machine and try your luck at winning big! Choose the number of lines and amount to bet per line, then watch as the 3x3 grid of symbols is generated. Calculate your winnings based on matching symbols and see if you have what it takes to beat the odds. Play as many rounds as you like and see if you can come out on top. Players can deposit money, choose the number of lines to bet on, and bet on each line. The slot machine then generates random symbols and checks for winning combinations on the selected lines.

Usage

To use the program, simply run the main() function. Upon running the program, the user will be prompted to deposit money. After depositing, the user can spin the slot machine by pressing enter. The program will prompt the user to select the number of lines to bet on and the bet amount for each line.

Configuration

The game can be configured by adjusting the following constants:

  • MAX_LINES: the maximum number of lines a user can bet on
  • MAX_BET: the maximum bet amount per line
  • MIN_BET: the minimum bet amount per line
  • ROWS: the number of rows in the slot machine
  • COLS: the number of columns in the slot machine
  • symbol_count: a dictionary containing the number of symbols of each type
  • symbol_value: a dictionary containing the payout value of each symbol type

About

This is a Python program that simulates a simple slot machine game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages