ajaynegi33/Old-School-Game

Add Lights Out Game

Open

#80 opened on Aug 3, 2025

 (2 comments) (0 reactions) (1 assignee)TypeScript (23 forks)auto 404
enhancementgood first issuegssocgssoc25level3status: ready for dev

Repository metrics

Stars
 (17 stars)
PR merge metrics
 (PR metrics pending)

Description

🔍 Is this game already proposed?

  • I have searched both "open" and "closed" issues and this is not a duplicate.

🎮 Game Summary

Add Lights Out Puzzle Game

Description: I want to add a new game to the collection — Lights Out, a classic puzzle where clicking a tile toggles it and its adjacent tiles. The objective is to turn off all the lights on the grid.

Gameplay Overview:

  • Grid size: 5x5
  • Each tile can be either on (lit) or off
  • Clicking a tile toggles: That tile & Its top, bottom, left, and right neighbors
  • The player wins when all lights are turned off

Benefits:

  • Puzzle-based, visually interactive, and fits well in the collection of logic games
  • Lightweight and fun
  • Adds variety to existing game types in the project

🧠 Brain Development Impact

Impact on Brain Development:

  • Enhances logical thinking and pattern recognition
  • Improves working memory and strategic planning
  • Boosts attention to detail and focus
  • Strengthens spatial awareness
  • Encourages problem-solving and decision-making skills

📚 Scientific Backing

No response

📄 Have You Read CONTRIBUTING.md?

  • I have read and understood the CONTRIBUTING.md and agree to follow the project’s game standards.

👨‍💻 Would you like to work on this game yourself?

Yes

🛠️ Implementation Plan (if you're building it)

Main Implementation Points:

  • 5x5 Grid
  • Cell Toggling Logic
  • Random Start: On game load/reset, randomly toggle a few cells to start
  • Win Detection: After each move, check if all cells are off
  • Styling

Contributor guide