Welcome to Max Min Weights: The Game, a fun and educational 2D game designed to teach players the Min-Max Weights algorithm. Created by Daniel Sarfraz & Kiran Fatima for their 5th Semester "Design and Analysis of Algorithms" course, this game challenges you to identify the heaviest and lightest cubes using a two-pan balance with a limited number of weighings. It is made from scratch using HTML, CSS and JS.
- Objective: Identify the heaviest and lightest cube.
- Weighing: Use the two-pan balance to compare the weights of the cubes.
- Limit: You have a limited number of weighings to achieve your goal.
- Guess Early: You can guess the heaviest and lightest cubes before using all weighings.
gameplay.mp4
- A web browser (Chrome, Firefox, Safari, etc.)
-
Clone the repository:
git clone https://github.com/your-username/Max-Min-Weights-Game.git cd Max-Min-Weights-The-Game
-
Download the Font:
- Download link: Digital-7 Font
- Extract the font file "digital-7 (mono).ttf" and place it in the
Assets
folder of the project.
-
Open
Run Game.html
in your web browser to start playing.
- The images "Cube.png" and "Digital Pan Balance.png" in the
Assets
folder were created by Daniel Sarfraz using Blender.
This project is licensed under the MIT License - see the LICENSE file for details. Files not present in this repository but may be required to use this project may have their own license(s).
- Special thanks to the creators of the "Digital-7 (mono)" font.
- Special thanks to our teacher for teaching us Design and Analysis of Algorithms.