Skip to content

A simple web game where players guess a number between 1-10 within 5 attempts. Built with HTML, CSS, and JavaScript using Bootstrap, the game features a responsive UI with Sinhala language elements, progress tracking, and visual hints. Players receive immediate feedback on their guesses with animated responses and automatic game resets.

Notifications You must be signed in to change notification settings

SadeepaNHerath/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

අංක අනුමාන ක්‍රීඩාව (Number Guessing Game)

alt text

Overview

A fun and interactive number guessing game built with HTML, CSS, and JavaScript. Players try to guess a randomly generated number between 1 and 10 within 5 attempts.

Features

  • Clean and professional UI with gradient background
  • Responsive design that works on all devices
  • Score tracking (attempts and wins)
  • Animated success messages
  • Hints to guide the player (too high/too low)
  • Automatic game reset after completing a round
  • Option to manually start a new game

Technologies Used

  • HTML5
  • CSS3 with animations
  • JavaScript (ES6+)
  • Bootstrap 5.3.3
  • Bootstrap Icons

How to Play

  1. The game will randomly select a number between 1 and 10
  2. Enter your guess in the input field
  3. Click the "අනුමාන කරන්න" (Guess) button
  4. You'll receive feedback whether your guess is too high, too low, or correct
  5. You have 5 attempts to guess the correct number
  6. Win by guessing the correct number
  7. The game automatically resets after a win or when you run out of attempts
  8. Click "නව ක්‍රීඩාව" (New Game) to restart at any time

Installation

  1. Clone the repository or download the ZIP file
  2. Extract the files to your desired location
  3. Open index.html in your web browser

About

A simple web game where players guess a number between 1-10 within 5 attempts. Built with HTML, CSS, and JavaScript using Bootstrap, the game features a responsive UI with Sinhala language elements, progress tracking, and visual hints. Players receive immediate feedback on their guesses with animated responses and automatic game resets.

Topics

Resources

Stars

Watchers

Forks