Giter Site home page Giter Site logo

minigame's Introduction

Minigame

Blackjack - To start playing all you have to do is go on terminal/cmd and node the file; afterwards the game would start asking you prompts answer them; the goal of this game is to reach 21. It is getting a random card which you would use afterwards in the game that is within the array yourCards; In the end it adds up the values of yourCards based on the typical rules of blackjack; afterwards that answer determines whether you win or not.

Random Password- It randomly generates a password based on the user input of the password length; afterwards it uses that length as a base to create a password randomly generated using symbols, numbers, upper and lower-cased letters. It uses arrays mostly, using math.random() to pick the other lengths so the letters/numbers/symbols all will not be same; afterwards it uses those lengths to pick a letter/symbol/number based on the array index. In the end consol.log-ing it all in the password array.

Rock Paper Scissors- Open terminal/cmd and locate the game afterwards; for the player it allows for the user input using process.argv so you’ll have to type ‘node rockPaperScissors.js’ and put your answer. Then on terminal/cmd and the code would randomly generate a player’s choice, finishing it off with a numerous amount of ‘if’ statements to check who is the winner between player vs machine.

minigame's People

Contributors

lameckasc6 avatar

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.