csy99 / LightsOut

A fun game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LightsOut

Rules and Explanation:

The game initially consists of a 5 by 5 grid of lights. When the game starts, a random number of these lights is switched on. Pressing any of the lights will toggle it and the adjacent lights. The goal of the puzzle is to switch all the lights off, preferably in as few button presses as possible.

The Textbox display the counts of user click so far.

Users can press Undo button to go back to the previous state (This will also decrease the move count).

Users can press Reset button to reset the whole display of the game.

Users can press Difficulty button to choose a different board size (Currently only board size of 3-7 is supported).

Possible Improvements:

  1. Automatically resize the form and rearrange the buttons appropriately, according to the board size of lights. (completed)

  2. Add a score board. Save different users’ score in a file. Display the highest score at the end of each game.

  3. Find solutions for each lights pattern and compute the minimum move required. Offer hints when user get stuck.

About

A fun game.


Languages

Language:C# 70.5%Language:Java 29.5%