Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Games Hub

Fifteen browser games with Java logic on the server — search, filter, and play.

Live demo   Java 17   Spring Boot   Warm amber theme



Open the hub → pick a game → play in the browser.
Rules stay in Java. The UI uses the same warm amber / bronze theme as java-practice.


Play Games   ·   Source on GitHub   ·   Related: java-practice


Java Games Hub — home with featured beginners games

Warm amber hub · search + category filters · Continue playing


What’s waiting when you click Play Games?

The live site opens a game menu (not a single game). From there you can search, filter by category, and open any of the 15 games below.

On the hub Under the hood
Search + category chips Java engines in service/
Continue playing Session-backed game state
Featured starters + full catalog Controllers + HTML templates

Free Render instances may sleep after idle time. The first visit can take ~30–60 seconds to wake.

Full hub catalog with all fifteen games


Preview — featured starters

Tic Tac Toe

Two players take turns as X and O on a 3×3 board.

Tic Tac Toe board

Hangman

Guess letters before six mistakes. New word anytime.

Hangman letter keyboard

Number Guess

Find a secret number from 1–100 with high / low hints.

Number Guess form

Preview — more games

Memory Match

Flip cards and find matching pairs.

Memory Match grid

Switch It

Slide numbered tiles into order — 3 levels.

Switch It sliding puzzle

Math Sprint

Ten quick arithmetic questions against the clock vibe.

Math Sprint questions

Lights Out

Toggle cells until every light is off.

Lights Out puzzle grid

All 15 games

Game Category What you do
Tic Tac Toe Classic Two players take turns as X and O on a 3×3 board
Hangman Words Guess letters before six mistakes
Memory Match Memory Flip cards and find matching pairs
Switch It Puzzle Slide numbered tiles into order (3 levels)
Number Guess Logic Find a secret number from 1–100
Rock Paper Scissors Classic Play rounds against the computer
Reaction Click Classic Click the lit cell as fast as you can
Typing Challenge Words Type the shown words accurately
Word Finder Words Count words that start with a letter
Parking Slots Logic Park and clear vehicles in a lot
Number Lab Logic Mark numbers matching the lab removal rule
Color Sequence Memory Repeat a growing color pattern
Math Sprint Logic Ten quick arithmetic questions
Odd One Out Logic Pick the item that does not belong
Lights Out Puzzle Toggle cells until every light is off

Try it

  1. Click Play Games
  2. Use search or the category chips (Classic · Puzzle · Words · Logic · Memory)
  3. Open a card — when you return to Hub, Continue playing remembers the last one

How to run locally

Needs JDK 17 and Maven.

export JAVA_HOME=$(/usr/libexec/java_home -v 17)   # macOS
mvn spring-boot:run

Then open http://localhost:8080.

Docker

docker build -t java-games-hub .
docker run --rm -p 8080:8080 -e PORT=8080 java-games-hub

Refresh README screenshots

npm install playwright@1.48.0
npx playwright install chromium
npm run docs:screenshots

Deploy

This is a normal Spring Boot app (host on Render, Railway, or any JVM/Docker host — not Vercel).

The repo includes a Dockerfile and render.yaml. On Render: New → Web Service → connect this repo → DockerFree → Deploy.

Live URL: https://java-games-hub.onrender.com


Project layout

src/main/java/.../controller/   # routes + hub
src/main/java/.../service/      # game engines (Java logic)
src/main/resources/templates/   # HTML pages
src/main/resources/static/      # CSS + hub.js
docs/images/                    # README screenshots
scripts/capture-screenshots.mjs # Playwright capture
Dockerfile                      # production image
render.yaml                     # Render blueprint

License

This project is licensed under the MIT License.

Author

Baheesa Fatima — web version of ACP Java game practice.

About

Fifteen browser games with Java logic on the server — Spring Boot hub with search and filters

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages