Git Product home page Git Product logo

guess-my-number's Introduction

Guess My Number

Guess My Number is a simple guessing game played in the web browser where the goal is to try and guess a number between 1 and 20. This game was built as a playful exercise in DOM manipulation using a combination of HTML/CSS/JS.

Give it a try!

Rules

  • Enter a number value between 1 and 20 into the box by clicking the top or bottom arrows inside the input, or by typing it out with your keyboard.
  • Afterwards, either click Check! or hit your Enter key to submit a guess. If the guess is too low or too high, the interface will change to reflect that to the user.
  • If the guess is correct, the background will turn green alerting the user of their win, and the users highscore will now reflect their score.
  • The user begins with a score of 10 each game and every time a failed guess is made, 1 is deducted from the users total score, making 10 the highest possible score.
  • To play again, click the Again! button at the top of the page to reset the game while still keeping track of the users highscore. If the user tries again and wins with a lower score, high score will not update, however, if they try again and win with a higher score, their highscore will update.

Demo

Here is a quick demonstration of the game in action. (Only 2 tries ๐Ÿ˜…)

Demo 1

Images

  1. Game Start

Image 1

  1. Guess Too Low

Image 2

  1. Guess Too High

Image 3

  1. Game Win

Image 4

  1. Game Lose

Image 5

Enjoy!

Give it a try!

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.