An open API service indexing awesome lists of open source software.

https://github.com/darshanas17/addition-game

A simple web app to calculate and validate the sum of two random numbers. Built with HTML, CSS, JavaScript, and Bootstrap, hosted on GitHub Pages.
https://github.com/darshanas17/addition-game

addition-game bootstrap css flexbox html javascript mini-project web-game web-project

Last synced: about 2 months ago
JSON representation

A simple web app to calculate and validate the sum of two random numbers. Built with HTML, CSS, JavaScript, and Bootstrap, hosted on GitHub Pages.

Awesome Lists containing this project

README

          

# Sum of Two Numbers Game

This repository contains an interactive web application where users can test their addition skills by solving random sums of two numbers. The app generates two random numbers, displays them, and allows the user to input their answer and check if it's correct.

## Features

- Random generation of two numbers between 1 and 100.
- Interactive user interface using HTML, CSS, and JavaScript.
- Responsive design powered by Bootstrap 4.
- Provides immediate feedback on the user's input.
- "Restart" button to generate a new pair of numbers.

## How to Use

1. Open the application in any modern web browser.
2. View the two randomly generated numbers and the "+" operator.
3. Input your answer in the provided text box.
4. Click the "Check" button to validate your answer.
5. Click the "Restart" button to start a new round with different numbers.

## Files Included

- **index.html**: The main HTML file containing the structure of the web application.
- **style.css**: Contains the custom CSS styles for the application.
- **script.js**: Includes the JavaScript logic for generating numbers, checking results, and restarting the game.

## Dependencies

- [Bootstrap 4.5.2](https://getbootstrap.com/): For styling and responsive design.
- [jQuery 3.5.1](https://jquery.com/): For DOM manipulation.
- [Popper.js](https://popper.js.org/): For Bootstrap's JavaScript components.

## Installation

1. Clone this repository to your local machine:

```bash
git clone https://github.com/Darshanas17/Addition-Game.git
```

2. Navigate to the project folder:

```bash
cd Addition-Game
```

3. Open `index.html` in your web browser to start the game.

## Screenshots

### Initial Screen
![Initial Screen](https://github.com/Darshanas17/Addition-Game/blob/main/Initial_Screen_Screenshot.png?raw=true)

### Correct Answer
![Correct Answer](https://github.com/Darshanas17/Addition-Game/blob/main/Correct_Answer_Screenshot.png?raw=true)

### Incorrect Answer
![Incorrect Answer](https://github.com/Darshanas17/Addition-Game/blob/main/Incorrect_Answer_Screenshot.png?raw=true)

## Contributing

Feel free to fork this repository and submit pull requests with improvements or bug fixes. Contributions are welcome!

## License

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

## Acknowledgments

- Fonts from [Google Fonts](https://fonts.google.com/).