Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Lights Out (HTML5/JS)

Turn off all the lights on the grid by toggling cells and their neighbors.

Features

  • Customizable Grid Size (3–10)
  • Undo and Restart Options
  • Score Tracking (best score per grid size via localStorage)
  • Accessible keyboard controls (Arrow keys to move focus, Space/Enter to toggle)

Tech

  • JavaScript, HTML5, CSS3

Getting Started

  1. Ensure this folder is hosted by your local web server. With Laragon, place it under C:\laragon\www.
  2. Open https://rskworld.in/games/html5-games/lights-out/index.php in your browser.
  3. Use the controls to start a new game and change the grid size.

Project Structure

index.php                  # Game UI and Support footer
assets/css/styles.css      # Styles
assets/js/game.js          # Game logic
assets/images/lights-out.svg # Icon

How to Play

  • Click/tap a cell to toggle it and its neighbors (up, down, left, right).
  • Turn off all the lights to win.
  • Use Undo to revert the last move and Restart to reset the current puzzle.

Support & Licensing

For support, licensing, or custom development inquiries:

🤝 Contributing: Pull requests and improvements are welcome.

About

Turn off all the lights on the grid by toggling cells and their neighbors.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages