Skip to content

Add endpoints for Waldo finders and selection evaluation with character data seeding#16

Merged
hussein-m-kandil merged 10 commits intomainfrom
dev
Nov 2, 2025
Merged

Add endpoints for Waldo finders and selection evaluation with character data seeding#16
hussein-m-kandil merged 10 commits intomainfrom
dev

Conversation

@hussein-m-kandil
Copy link
Copy Markdown
Owner

This pull request adds core features needed for the game backend: seed data for characters' rects (boundaries pixel-position), endpoints to manage character finders and evaluate selections, and improvements to tests and middleware.

What’s new:

  • Seeds characters' data if missing, ensuring the game map is populated.
  • Creates the CharacterFinder model and adds endpoints to get, create, or update a finder record for each user/game.
  • Adds an evaluation endpoint that checks a user’s selection box against the stored character’s position and returns feedback.
  • Remove any game that has been open for at least two days and has not ended yet.
  • Updates the visitor-registrar middleware to ignore /characters routes.
  • Refactors integration tests to use a custom app instance, aligning with new routes and logic.
  • Updated Prisma dependencies.

@hussein-m-kandil hussein-m-kandil merged commit 45bd767 into main Nov 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant