bryandevelops / Guess-My-Number

A guessing game played in the browser.

Home Page:https://bryandevelops.github.io/Guess-My-Number/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

A guessing game played in the browser.

https://bryandevelops.github.io/Guess-My-Number/


Languages

Language:JavaScript 42.6%Language:CSS 36.0%Language:HTML 21.4%