/discovering-javascript

JackpotJourney - Console Slot Machine 💵 Adventure

Primary LanguageJavaScript

JackpotJourney

Thanks to TechWithTim

Console Slot Machine 💵 Adventure

Welcome to JackpotJourney : Console Slot Machine 💵 Adventure project! This is a simple terminal-based slot machine game where you can test your luck and try to win some virtual money.

How to Play

  1. Deposit Some Money: To start the game, you need to deposit an initial amount of virtual money. Enter the amount you want to deposit when prompted.
  2. Determine the Number of Lines to Bet On: Choose how many lines you want to bet on (1 to 3). Each line will have a separate bet.
  3. Collect the Bet Amount: Enter the bet amount for each line. Make sure your bet is within your available balance.
  4. Spin the Slot Machine: Let the reels spin and see the symbols align. Each reel contains a variety of symbols with different values.
  5. Check if You Won: The game will check if you've won on any of the lines you bet on. If you have a winning combination, your winnings will be added to your balance.
  6. Continue Playing: You can choose to continue playing or exit the game after each round. The game ends if your balance reaches zero.

Slot Machine Entities

  • Symbols: The game includes symbols like 💎, 💳, 💰, and 🍌, each with different values.
  • Rows and Columns: The slot machine consists of 3 rows and 3 columns.
  • Lines: You can bet on 1 to 3 lines.

How to Run

  1. Ensure you have Node.js installed on your system.
  2. Clone this repository.
  3. Open your terminal and navigate to the project directory.
  4. Run npm init
  5. Install npm -i prompt-sync
  6. Run the game by executing the script: node main.js.

Play & Hit Jackpot! 🎰💰🎉