A Java Spring Boot implementation of the classic Lights Out puzzle game.
Includes both web-based and console versions developed as part of a GameStudio project.
Lights Out is a logic-based puzzle where the goal is to turn off all the lights on the board.
Clicking a light toggles it and its adjacent lights — the challenge is to find the correct combination!
- Two gameplay modes:
- Endless mode – play random levels continuously.
- Progressive mode – start from smaller boards and progress to larger ones.
- Web interface built with Thymeleaf + Bootstrap
- Console version for terminal-based play
- Player scores, ratings, and comments stored in PostgreSQL
- Backend powered by Spring Boot + JPA/Hibernate
- REST API support for external clients
🎮 Console gameplay:
https://www.youtube.com/watch?v=YiTtKiysoSE&t=25s
🌐 Web gameplay:
https://www.youtube.com/watch?v=jgd6u4aD8RQ
| Layer | Technology |
|---|---|
| Language | Java 17 |
| Framework | Spring Boot 2.4.4 |
| Frontend | Thymeleaf + Bootstrap |
| Database | PostgreSQL (JPA / Hibernate) |
| Build Tool | Maven |
| IDE | IntelliJ IDEA |
- Open the project in IntelliJ IDEA
- Run
GameStudioServer.java
→ The web app will start at http://localhost:8080/lightsout
mvn spring-boot:run