Skip to content

"Light Up" puzzle mini game with a user interface that uses a simple backtracking algorithm that solves the problem returning the minimum quantity of lightbulbs necessary to light up all cells of a grid

Notifications You must be signed in to change notification settings

vitalinarh/Lights-Up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Light-Up

Simple backtracking algorithm that solves the lights up problem returning the minimum quantity of bulbs necessary to light up all cells of a grid. Given a square grid of white and black cells, find the minimum number of light bulbs that can be placed in white cells such that all white cells in the grid are covered by light. The light bulbs can only send rays of light in the same row and in the same column. However, the ray is be blocked if it finds a black cell.

Table of Contents

Windows/Linux Install

# Clone repository
$ git clone https://github.com/vitalinarh/Lights-Up

# Go to repository directory
$ cd Lights-Up

# Install dependencies
$ pip install -r requirements.txt 

Usage

To run the project:

$ python3 lightup.py

About

"Light Up" puzzle mini game with a user interface that uses a simple backtracking algorithm that solves the problem returning the minimum quantity of lightbulbs necessary to light up all cells of a grid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages