Skip to content

priyaladesara/Slot-Machine-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slot Machine Game

This is a simple web-based slot machine game implemented using HTML, CSS, and JavaScript. The game allows players to deposit money, set the number of lines to bet on, and place bets on each line. After placing the bets, the player can spin the slot machine reels to see if they win or lose.

How to Play

  1. Open the index.html file in a web browser to start the game.
  2. Enter the amount of money you want to deposit into your balance.
  3. Set the number of lines you want to bet on (between 1 and 3).
  4. Enter the bet amount for each line.
  5. Click on the "Place Bet" button to spin the reels and see the result.
  6. If you win, your winnings will be added to your balance. If you lose, the bet amount will be deducted from your balance.
  7. Click on the "Play Again" button to reset the game and play another round.

Files

  • index.html: The main HTML file that contains the structure of the game interface.
  • styles.css: The CSS file that defines the styles for the game interface.
  • script.js: The JavaScript file that contains the game logic and functionality.

Game Logic

  • The slot machine has 3 reels, each containing symbols A, B, C, and D.
  • The number of symbols of each type in the reels determines the probability of each symbol appearing.
  • Players can bet on 1 to 3 lines, and the bet amount is deducted from their balance for each line.
  • After spinning the reels, the game checks if there are any winning combinations on the selected lines.
  • Winning combinations are determined based on matching symbols on the same line.
  • If the player wins, their winnings are calculated based on the bet amount and the multiplier value of the winning symbol.

Features

  • Responsive design: The game interface is designed to be responsive and adapt to different screen sizes.
  • User-friendly interface: The game interface is simple and easy to use, with clear instructions and input fields.
  • Dynamic gameplay: The game provides an interactive and engaging experience with spinning reels and real-time feedback on winnings.

Screenshot

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published