Skip to content

Welcome to Max Min Weights: The Game, a fun and educational 2D game designed to teach players the Min-Max Weights algorithm. This game challenges you to identify the heaviest and lightest cubes using a two-pan balance with a limited number of weighings. It runs on a web browser.

License

Notifications You must be signed in to change notification settings

DanielSarf/Max-Min-Weights-The-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Welcome to Max Min Weights: The Game, a fun and educational 2D game designed to teach players the Min-Max Weights algorithm. This game challenges you to identify the heaviest and lightest cubes using a two-pan balance with a limited number of weighings. It runs on a web browser.

Resources

License

Stars

Watchers

Forks