Skip to content

This is a simple slot machine game built with Node.js. Players deposit money, place bets on multiple lines, and spin the slot machine to win rewards.

License

Notifications You must be signed in to change notification settings

whdev36/javascript-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slot Machine Game 🎰

Description

This is a simple slot machine game built with Node.js. Players deposit money, place bets on multiple lines, and spin the slot machine to win rewards.

Features

✔ Deposit money
✔ Choose the number of lines to bet on
✔ Place bets per line
✔ Spin the slot machine
✔ Check winnings
✔ Add winnings to balance
✔ Option to play again

Installation

  1. Clone the repository:
    git clone https://github.com/whdev36/javascript-project.git
  2. Navigate to the project directory:
    cd javascript-project
  3. Install dependencies:
    npm install

Usage

  1. Run the game:
    node main.js
  2. Follow the prompts to:
    • Deposit money
    • Choose the number of lines to bet on (1-3)
    • Place a bet per line
    • Spin the slot machine
    • See if you won and decide to play again

Example Gameplay

Enter a deposit amount: 100
You have a balance of $100
Enter the number of lines to bet on (1-3): 2
Enter the bet per line: 5
A | B | C
A | A | A  <-- Win!
B | D | C
You won $25!
You have a balance of $115
Do you want to play again (y/n)? y

Technologies Used

  • Node.js
  • prompt-sync (for user input)

Contributing

Feel free to fork the repository and submit pull requests with improvements or new features!

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is a simple slot machine game built with Node.js. Players deposit money, place bets on multiple lines, and spin the slot machine to win rewards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published