Giter VIP home page Giter VIP logo

js-guessing-game's Introduction

JavaScript Guessing Game

Description

Generate a random integer between 1 and 100. Prompt the user to guess the number.

Objectives

Learning Objectives

After completing this assignment, you should…

  • Understand how to use while loops
  • Understand boolean logic

Performance Objectives

After completing this assignment, you be able to effectively use

  • Use some tool or technique

Details

Deliverables

  • A repo containing at least:
    • dist/main.js
    • dist/index.html

Requirements

  • No JSHint warnings or errors

Normal Mode

Fork and then clone this repository. You will complete this assignment by modifying the main.js file within your copy of the code.

For this assignment you will create a number guessing game. Your program will randomly generate an integer (whole number) between 1 and 100. Using the game.ask command, you should ask the user to guess the randomly generate number. If their guess is too low, it should inform them that the guess was too low and prompt them to guess again. If their guess is too high it should inform them that their guess was too high, and prompt them to guess again. If they correctly guess the number it should inform them that they won.

Hard Mode

Update your game so that when a user wins, it prompts them to either quit or play again. If they choose to play again, the game should start over with a new random number. If they choose to quit, it should show a goodbye message.

If you feel the urge, re-style the game by modifying the Sass.

Notes

Additional Resources

js-guessing-game's People

Contributors

alarner avatar awg24 avatar

Watchers

 avatar  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.