/N_Game_Genius_Solver

The N-Game Genius is a tool designed to help users find solutions to a classic mathematical puzzle where the goal is to make the number N using a set of numbers and basic arithmetic operations.

Primary LanguageHTMLMIT LicenseMIT

N-Game Genius

This project is for fun, as we have Learnt DSA and want to apply some of the algorithms quickly. N-Game Genius is a web-based tool designed to help users solve a classic mathematical puzzle that aims to make the number N using a set of numbers and basic arithmetic operations. It serves educational and entertainment purposes, helping users sharpen their mathematical and problem-solving skills.

Live Link

https://n-game-genius-solver.vercel.app/

Home About

File Structure

N-Game Genius/
├── .git/                # Git directory
├── about.html           # HTML page providing information about Pages 
├── algo.py              # Python script containing the logic for 
├── LICENSE              # License file for the project
├── README.md            # This README file
├── test.html            # Main HTML page with the N-target solver 
└── vercel.json          # Vercel configuration file for deployment

How to Use

Clone the repository:

git clone https://github.com/your-username/n-game-genius.git

Navigate to the project directory:

cd n-game-genius

View the Project:

Open test.html in your browser to interact with the N-Game Genius tool. Open about.html to learn more about the project.

Python Script:

You can run the algo.py script independently to solve the N-target problem programmatically. Example usage: python Copy code from algo import solve_n_target nums = [1, 2, 3, 4, 5] target = 16 print(solve_n_target(nums, target))

Expected output: (5 * 4) - (3 + 1) = 16

Contributor

Advait Gaur

Gopala Jyani