Git Product home page Git Product logo

homework-05-hilo's Introduction

#FEWD80 Homework #5 - HiLo



###Description

This week you will be building the classic game of High Low where the player guesses a number in a specified range and the application will provide context clues (guess was too high or too low) to guide the player to the correct number.



###Technical Requirements

  • At the start of each game the app should randomly generate the secret number (it should be a whole number)

  • Users will be given 5 guesses

  • If a user enters a guess and it is incorrect the following should happen:

  • A notification will be displayed informing the user that their guess was either too loo or too high

  • The number of guesses remaining count will be decremented by 1

  • If a user enters a guess and it is correct the following should happen:

    • A notification will be displayed informing the user that their guess was correct
    • The number of guesses remaining count will be reset back to 5
  • If a user runs out of guesses (5) without correctly guessing the secret number the following should happen:

    • A notification will be displayed informing they user that they ran out of guesses and the game was over
  • When users click on the reset button the following should happen:

    • The number of guesses remaining should be reset to 5
    • The message should be hidden
  • Apply the "success" class to the element containing the notification message when the user correctly guesses the secret number

  • Apply the "error" class to the element containing the notification message when the user runs out of guesses

homework-05-hilo's People

Contributors

kareemgrant avatar

Watchers

James Cloos 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.