Lights Out

Lights Out is a game that needs to turn off all the lights in a matrix, but every time you press a light to turn it off, the adjacent ones light up.

Introduction

This project was done in artificial intelligence class and simulates state space search, a very simple and rudimentary method to find the answer you need, which is basically asking the machine to do all the possibilities until it finds the answer you need.

The project consists of a system that solves the game Light's Out< /strong>. There is an array of numbers (0-1) or boolean values ​​(true, false) in which when trying to turn off one (clicking on it, changing its value), the adjacent values ​​of that number will also change value, the objective of the game is to turn off all numbers in the matrix.

Contact