Giter Site home page Giter Site logo

guess_my_num's Introduction

Guess My Number Game

This is a simple number guessing game built with HTML, CSS, and JavaScript. The game generates a secret number between 1 and 20, and your goal is to guess it!

Dashboard

Project Structure

The project consists of three main files:

index.html: This is the main HTML file that contains the structure of the game. style.css: This file contains all the styles used in the game. script.js: This is where the game logic is implemented.

How to Play

Open the index.html file in your browser. You'll see a screen with a field to input your guess, a "Check!" button to submit your guess, and a "Again!" button to restart the game. The game starts with a score of 20. Each wrong guess decreases your score by 1. The game also keeps track of your high score across multiple rounds.

Game Rules

The game generates a secret number between 1 and 20. If your guess is too high or too low, the game will give you a hint. If your guess is correct, the background color changes to green and you'll see a message saying "Yay You got it." Each wrong guess decreases your score by 1. The game ends when your score reaches 0 or you guess the correct number.

Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License MIT

guess_my_num's People

Watchers

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