Lights Out Coding Project

In the fall of 2024, I took a computer science class with Professor Lisa Dion called “Puzzles, Games, and Algorithms”. For my final project, I created a variation on the classic game “Lights Out” in Python. The goal of the game is to turn each block of a grid white. Clicking on a block toggles the color of the block along with the 4 neighboring blocks. The classic game is a 5×5 grid, but in my variation, the player can make the grid a rectangle of any size up to 29×29. Each game is solvable and the player can reset, quit, or start a new game at any point. Although there are aspects I wanted to improve, such as font and sound effects, the project was a success and was a great way to further practice my Python skills.

The code itself is a bit ugly and very unoptimized, but it is functional and I learned quite a lot while working on this project.