๐ฐ JavaScript Slot Machine
A simple and interactive Slot Machine web application built entirely with HTML, CSS, JavaScript, and Bootstrap. Test your luck by placing bets, spinning the reels, and trying to increase your balance!
๐ Features
Deposit a starting balance to play.
Place custom bets for each spin.
Spin the slot machine to try your luck.
Automatic balance update based on win/loss.
Fully responsive design using Bootstrap.
Fun animations and slot reel effects with pure JavaScript.
๐ป Technologies Used
HTML5 โ Structure of the app
CSS3 โ Styling and animations
JavaScript โ Game logic, balance calculation, and interactivity
Bootstrap 5 โ Responsive design and UI components
๐ฎ How to Play
Open the app in a web browser.
Deposit an initial balance to start playing.
Enter your bet amount for the spin.
Click the Spin button to spin the reels.
If you win, your balance increases automatically based on the payout rules.
Repeat to keep playing until your balance runs out.
๐ง How to Run
Clone this repository:
git clone https://github.com/athulkrishna-dev/js_slot_machine.git
Navigate to the project folder:
cd js_slot_machine
Open index.html in your preferred browser.
Start spinning and enjoy!
๐ Notes
The game is purely client-side and does not store balances permanently. Refreshing the page will reset your balance.
Make sure JavaScript is enabled in your browser for the game to work.
๐ธ Screenshot
๐ก Future Enhancements
Add sound effects for spins and wins.
Implement multiple paylines or jackpots.
Store balance in local storage so it persists across sessions.
Mobile-friendly touch controls for spinning.
๐ License
This project is open-source and free to use under the MIT License.