This is a simple text-based Slot Machine game built with JavaScript. Players can deposit money, place bets, and spin the reels. The game includes a payout system based on different symbols, including a jackpot for matching three 'A' symbols. Track your balance, winnings, and play multiple rounds.
- Deposit & Bet: Deposit funds and place bets on 1-3 lines.
- Reel Spin: Spin the reels and try to match symbols for winnings.
- Jackpot: Double your bet if 3 'A' symbols match on a line.
- Balance Tracking: View current balance, total bets, and winnings.
- Play Again: Option to play again or quit.
| Symbol | Count | Value | Description |
|---|---|---|---|
| A | 2 | 5 | Highest payout symbol |
| B | 4 | 4 | Mid-tier payout symbol |
| C | 6 | 3 | Lower payout symbol |
| D | 8 | 2 | Lowest payout symbol |
- If three "A" symbols appear on a line, your winnings for that line are doubled.
-
Start the Game:
- Run the
slotMachine.jsfile in a Node.js environment. - Enter your deposit amount. Type
qto quit anytime.
- Run the
-
Bet:
- Select the number of lines (1-3) you want to bet on.
- Enter the amount you'd like to bet per line.
-
Spin:
- Spin the reels and see if you win based on symbol combinations.
-
Play Again:
- After each round, you can play again or quit.
- Node.js (v12 or higher)
prompt-syncpackage to handle user input.
Install dependencies by running:
- Install Node.js if not already installed.
- Run the game with:
node SlotMachine.js
Follow the on-screen prompts to play!