Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎰 Slot Machine Game

📌 Overview

This project is an interactive slot machine game that can be played both on a web browser and in the terminal using Node.js. The game includes:

  • A web-based slot machine with emoji symbols and smooth animations
  • A terminal-based version (project.js) that can be run using Node.js
  • Dynamic balance updates, betting options, and winnings calculation
  • A fun and engaging UI with a modern design

🎨 Technologies Used

  • HTML: Structure for the web-based slot machine
  • CSS: Styling, animations, and layout
  • JavaScript (Node.js): Game logic for both web and terminal versions

🛠️ Features

✅ Deposit money to start playing ✅ Choose the number of bet lines (1-3) ✅ Select a bet amount per line ✅ Spin the slot machine with randomized emoji symbols ✅ Check if you won or lost, and update the balance accordingly ✅ Interactive and animated slot machine UI for web ✅ Node.js version (project.js) for terminal-based gameplay

📂 Project Structure

slot-machine-project/
│── index.html      # Web version (HTML)
│── style.css       # CSS animations and styling
│── script.js       # JavaScript logic for web version
│── project.js      # Terminal-based slot machine (Node.js)
│── README.md       # Project documentation

🚀 How to Use

🌐 Web Version

  1. Open index.html in your browser.
  2. Enter a deposit amount and start playing.
  3. Select the number of lines to bet on and the bet amount.
  4. Click Spin and watch the slot machine animate.
  5. The game will check if you win and update your balance accordingly.

🖥️ Node.js Terminal Version

  1. Install Node.js.
  2. Open a terminal or command prompt.
  3. Navigate to the project directory.
  4. Run the command:
    node project.js
  5. Follow the prompts to play the game in the terminal.

📝 Customization

You can modify the game easily:

  • Change slot symbols in script.js and project.js
  • Adjust animations in style.css
  • Modify payout values in symbolValues in script.js
  • Enhance logic with additional game mechanics

💡 Future Enhancements

🔹 Add sound effects for spins and wins 🔊 🔹 Implement leaderboards and scoring 🏆 🔹 Create a progressive jackpot mode 💰 🔹 Make it mobile-friendly 📱

Enjoy playing this exciting Slot Machine Game! 🎰🔥

About

A web-based Simple Slot Machine using JavaScript and Node.js that generates random spins, checks winning combinations, and updates the user’s balance.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages