feat: add Scavenger Hunt game mode#1
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
- Add GameMode enum and ScavengerItem model to models.py
- Add generate_checklist() and toggle_item() to game_logic.py
- Update GameSession with scavenger hunt support (start_scavenger_hunt,
handle_item_click, checked_count, progress_percent)
- Add /start-scavenger-hunt and /toggle-item/{item_id} routes
- Update start screen with mode selection (Bingo vs Scavenger Hunt)
- Add scavenger_screen.html template with checklist and progress bar
- Add CSS utility classes (w-6, h-2, h-6, flex-shrink-0, overflow-auto)
- Add tests for new game logic and API routes (39 total, all passing)
Agent-Logs-Url: https://github.com/prashantchahar/my-soc-ops-python/sessions/da4dff2d-850b-4db2-9521-3171e26f4256
Co-authored-by: prashantchahar <19215720+prashantchahar@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Build new features based on recent code
feat: add Scavenger Hunt game mode
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a second game mode — Scavenger Hunt — alongside the existing Bingo mode. Players get the same question pool as a scrollable checklist with a live progress bar instead of a 5×5 grid.
Data model
GameModeenum (BINGO/SCAVENGER_HUNT) andScavengerItemPydantic model inmodels.pyGame logic (
game_logic.py)generate_checklist()— shuffles all 24 questions into a flatScavengerItemlisttoggle_item()— immutable toggle (mirrors existingtoggle_squarepattern)Session (
game_service.py)start_scavenger_hunt(),handle_item_click()methods onGameSessionchecked_count/progress_percentdrive the progress barRoutes (
main.py)POST /start-scavenger-hunt→ rendersscavenger_screen.htmlPOST /toggle-item/{item_id}→ toggles item, re-renders screenTemplates & CSS
start_screen.html— now shows two mode buttons (🎲 Play Bingo / 🔍 Scavenger Hunt)scavenger_screen.html— checklist with animated CSS progress barapp.css— addedw-6,h-2,h-6,flex-shrink-0,overflow-autoutilitiesOriginal prompt