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.
✔ 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
- Clone the repository:
git clone https://github.com/whdev36/javascript-project.git
- Navigate to the project directory:
cd javascript-project
- Install dependencies:
npm install
- Run the game:
node main.js
- 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
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
- Node.js
- prompt-sync (for user input)
Feel free to fork the repository and submit pull requests with improvements or new features!
This project is licensed under the MIT License. See the LICENSE
file for details.