Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฐ 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.

About

A fun and interactive JavaScript Slot Machine built with HTML, CSS, JavaScript, and Bootstrap. Deposit a balance, place bets, and spin the reels winnings are automatically calculated and added to your balance. Fully client-side, responsive, and easy to play.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages