Giter Club home page Giter Club logo

discovering-javascript's Introduction

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! ๐ŸŽฐ๐Ÿ’ฐ๐ŸŽ‰

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.