A simple command-line slot machine game built with Node.js.
This project simulates depositing money, betting on lines, spinning reels, and checking winnings.
- Deposit money into your balance
- Choose how many lines to bet on (1–3)
- Set your bet per line with validation against your balance
- Spin a 3x3 slot machine with customizable symbols
- Win multipliers based on symbol values
- Displays winnings and updated balance after every spin
- Option to play again until your balance runs out
- Language: JavaScript (Node.js)
- Dependency: prompt-sync
- Clone the repository:
git clone https://github.com/sebzcode/SlotMachineGame.git cd SlotMachineGame - Install dependencies:
npm install prompt-sync
- Rune the game:
node project.js
- Enter a deposit amount (must be greater than 0).
- Choose the number of lines to bet on (1–3).
- Enter your bet per line (must be within your balance).
- The reels spin automatically.
- If all symbols in a row match, you win based on symbol values:
- A = 5x
- B = 4x
- C = 3x
- D = 2x
- Winnings are added to your balance.
- Continue playing until your balance is 0 or you choose to quit.
- Add more rows/columns (customizable slot size)
- Introduce diagonal wins
- Add bonus rounds and jackpots
- Create a GUI version using Electron or React
Built by sebs