Skip to content

A browser-based number guessing game with a timer, hints, and limited attempts. Includes both procedural and OOP (class-based) implementations—switchable via index.html. Useful for learning JavaScript browser events, execution context, and classes.

License

Notifications You must be signed in to change notification settings

kate8382/guess_number_game

Repository files navigation

Guess Number Game

Description

This project is a practical assignment for self-study of the JavaScript "Advanced Level" course, focusing on a deeper understanding of the topics "Browser Events", "Execution Context", and "Classes". As part of this work, the file class.js was added.

This is a simple game where the user needs to guess the number chosen by the computer. The project is developed using HTML, CSS, and JavaScript.

Screenshots

Desktop Version (1024px)

Desktop Version

Adaptive Design (768px) with Info Alert

Adaptive Design

Victory Alert (560px)

Victory Alert

End of Game with Loss (560px)

End of Game

Refactoring Story

Read about the transition from procedural to OOP style and the main challenges I faced:

Access the Game

You can play the game online through GitHub Pages:

Guess Number Game

View the Code

You can view and clone the source code from the GitHub repository:

View Source Code

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/guess_number_game.git
  2. Open the index.html file in your browser.

Usage

  • Follow the on-screen instructions to guess the number.
  • Enjoy the game!

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A browser-based number guessing game with a timer, hints, and limited attempts. Includes both procedural and OOP (class-based) implementations—switchable via index.html. Useful for learning JavaScript browser events, execution context, and classes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published