Play the live game here.
A Lights Out game implemented using React. Toggle the cells to turn off all the lights and win the game!
- Customizable board size (number of rows and columns).
- Responsive design with neon lights bars styling.
- Randomly generated initial light configuration.
- Clone this repository to your local machine.
- Navigate to the project directory using the terminal.
- Install the required dependencies by running
npm install
. - Start the development server with
npm start
. - Open your web browser and visit
http://localhost:3000
to play the Lights Out game. - Click on the cells to toggle their states. The goal is to turn off all the lights on the board.
- You win when all the lights are turned off.
You can customize the game by adjusting the following options:
- Board size (number of rows and columns).
- Initial probability of lights being turned on.
These options are defined as defaultProps
at the beginning of the Board.js
file.
This project demonstrates building a Lights Out game using React components and styling.
Feel free to explore the code and make any improvements or modifications you'd like. If you find any issues or have suggestions, please open an issue or submit a pull request.
This project is licensed under the MIT License.