Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.94 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.94 KB

Max Min Weights: The Game

Introduction

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.

How to Play

  1. Objective: Identify the heaviest and lightest cube.
  2. Weighing: Use the two-pan balance to compare the weights of the cubes.
  3. Limit: You have a limited number of weighings to achieve your goal.
  4. Guess Early: You can guess the heaviest and lightest cubes before using all weighings.

Gameplay

gameplay.mp4

Getting Started

Prerequisites

  • A web browser (Chrome, Firefox, Safari, etc.)

Installation and Running the Game

  1. Clone the repository:

    git clone https://github.com/your-username/Max-Min-Weights-Game.git
    cd Max-Min-Weights-The-Game
  2. 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.
  3. Open Run Game.html in your web browser to start playing.

Image assets attribution

  • The images "Cube.png" and "Digital Pan Balance.png" in the Assets folder were created by Daniel Sarfraz using Blender.

License

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).

Acknowledgments

  • Special thanks to the creators of the "Digital-7 (mono)" font.
  • Special thanks to our teacher for teaching us Design and Analysis of Algorithms.