Skip to content

Muhammad-Arshadh/NumGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumGame

Overview

NumGame is a fun number-guessing game. Players guess a number between 1 and 100 with feedback after each attempt. Guess within 7 tries to win, or lose when the limit is reached. Enjoy smooth animations and a clean design.

Features

  • Random target numbers (1–100)
  • Feedback: “too high” or “too low”
  • Tracks attempts and guessed numbers
  • 7-guess limit with game-over state
  • Smooth animations (shake, bounce)
  • Enter key support
  • Responsive design

How to Play

  1. Open the game in a browser.
  2. The game picks a number between 1 and 100.
  3. Enter your guess and click "GUESS" or press "Enter."
    • Feedback is shown for each guess.
  4. You have 7 guesses:
    • Guess correctly to win.
    • Use all guesses to lose.
  5. Attempts and guessed numbers are displayed.

Project Structure

  • index.html: Game interface
  • style.css: Styling (gradient background, animations)
  • script.js: Game logic (random number, validation, animations, guess limit)
  • icon.png: Game icon

Installation

  • You can also play the game directly here.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors