# cs196illinois/fa26-mp-codebases-geouiuc architecture

> Architecture diagram of the GitHub repository cs196illinois/fa26-mp-codebases-geouiuc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cs196illinois/fa26-mp-codebases-geouiuc
- Repository: https://github.com/cs196illinois/fa26-mp-codebases-geouiuc

## Overview

GeoUIUC is a campus-location guessing game: players sign in, start a round, explore a Street View location, submit a map guess, and see their score before continuing or returning to the lobby. The frontend also provides profile statistics and shared audio/settings controls. The graph reflects documented product capabilities and source-indexed imports; Firebase backend behavior beyond the shown client-side reads and writes is not detailed in the available excerpts.

Main entry points: [`Frontend/src/app/game/page.js`](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/page.js) (Game Round), [`Frontend/src/app/login/page.js`](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/login/page.js) (Google Sign-in), [`Frontend/src/components/SettingsModal.js`](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/SettingsModal.js) (Settings Modal), [`Frontend/src/app/lobby/page.js`](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/lobby/page.js) (Game Lobby)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and Profile"]
  node_login["Google Sign-in<br/>[page.js]"]
  node_auth_ui["Login Button<br/>[LoginButton.js]"]
  node_firebase_config["Firebase Client<br/>[firebase-config.js]"]
  node_user_store[("Firebase Auth and Database")]
  node_lobby["Game Lobby<br/>[page.js]"]
  node_profile["Player Profile<br/>[page.js]"]
end

subgraph group_gameplay["Round Gameplay"]
  node_game["Game Round<br/>[page.js]"]
  node_point_picker["Campus Point Picker<br/>[randpoint.js]"]
  node_guess_map["Guess Map<br/>[GuessMap.js]"]
  node_maps_service["Google Maps and Street View"]
  node_score_screen["Round Score Screen<br/>[ScoreScreen.js]"]
  node_result_route["Result Route<br/>[page.js]"]
  node_score_bar["Result Score Bar<br/>[ScoreBar.js]"]
end

subgraph group_account["Account and Preferences"]
  node_audio_provider["Audio Controls<br/>[AudioProvider.js]"]
  node_settings["Settings Modal<br/>[SettingsModal.js]"]
end

subgraph group_shared["Shared Application"]
  node_root_layout["Application Layout<br/>[layout.js]"]
end

node_player(("Player"))

node_player -->|"starts sign-in"| node_login
node_login -->|"renders"| node_auth_ui
node_auth_ui -->|"starts Google sign-in"| node_firebase_config
node_login -->|"creates user record"| node_user_store
node_firebase_config -->|"provides auth and database"| node_user_store
node_player -->|"enters game"| node_lobby
node_lobby -->|"reads player stats"| node_user_store
node_player -->|"views profile"| node_profile
node_profile -->|"reads player stats"| node_user_store
node_player -->|"starts round"| node_game
node_game -->|"chooses location"| node_point_picker
node_game -->|"loads Street View"| node_maps_service
node_game -->|"renders map"| node_guess_map
node_guess_map -.->|"displays map"| node_maps_service
node_game -->|"shows round score"| node_score_screen
node_score_screen -->|"returns when complete"| node_lobby
node_player -.->|"opens result page"| node_result_route
node_result_route -->|"renders"| node_score_bar
node_root_layout -->|"provides audio context"| node_audio_provider
node_root_layout -->|"renders globally"| node_settings
node_settings -->|"controls volumes"| node_audio_provider
node_settings -->|"checks sign-in"| node_user_store

click node_login "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/login/page.js"
click node_auth_ui "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/LoginButton.js"
click node_firebase_config "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/firebase-config.js"
click node_lobby "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/lobby/page.js"
click node_profile "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/profile/page.js"
click node_game "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/page.js"
click node_point_picker "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/test-scripts/randpoint.js"
click node_guess_map "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/GuessMap.js"
click node_score_screen "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/ScoreScreen.js"
click node_result_route "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/result/page.js"
click node_score_bar "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/result/ScoreBar.js"
click node_audio_provider "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/AudioProvider.js"
click node_settings "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/SettingsModal.js"
click node_root_layout "https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/layout.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_auth_ui,node_firebase_config,node_user_store,node_lobby,node_profile toneBlue
class node_game,node_point_picker,node_guess_map,node_maps_service,node_score_screen,node_result_route,node_score_bar toneAmber
class node_audio_provider,node_settings toneMint
class node_root_layout toneRose
class node_player toneIndigo
```

## Components

### Identity and Profile

- [Google Sign-in](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/login/page.js): `Frontend/src/app/login/page.js`
- [Login Button](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/LoginButton.js): `Frontend/src/components/LoginButton.js`
- [Firebase Client](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/firebase-config.js): `Frontend/src/components/firebase-config.js`
- **Firebase Auth and Database**
- [Game Lobby](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/lobby/page.js): `Frontend/src/app/lobby/page.js`
- [Player Profile](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/profile/page.js): `Frontend/src/app/profile/page.js`

### Round Gameplay

- [Game Round](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/page.js): `Frontend/src/app/game/page.js`
- [Campus Point Picker](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/test-scripts/randpoint.js): `Frontend/src/app/game/test-scripts/randpoint.js`
- [Guess Map](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/GuessMap.js): `Frontend/src/app/game/GuessMap.js`
- **Google Maps and Street View**
- [Round Score Screen](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/ScoreScreen.js): `Frontend/src/app/game/ScoreScreen.js`
- [Result Route](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/result/page.js): `Frontend/src/app/game/result/page.js`
- [Result Score Bar](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/game/result/ScoreBar.js): `Frontend/src/app/game/result/ScoreBar.js`

### Account and Preferences

- [Audio Controls](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/AudioProvider.js): `Frontend/src/components/AudioProvider.js`
- [Settings Modal](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/components/SettingsModal.js): `Frontend/src/components/SettingsModal.js`

### Shared Application

- [Application Layout](https://github.com/cs196illinois/fa26-mp-codebases-geouiuc/blob/main/Frontend/src/app/layout.js): `Frontend/src/app/layout.js`

### Other components

- **Player**

## Connections

- Player → Google Sign-in: starts sign-in (evidence: `README.md`)
- Google Sign-in → Login Button: renders (evidence: `Frontend/src/app/login/page.js`)
- Login Button → Firebase Client: starts Google sign-in (evidence: `Frontend/src/components/LoginButton.js`)
- Google Sign-in → Firebase Auth and Database: creates user record (evidence: `Frontend/src/app/login/page.js`)
- Firebase Client → Firebase Auth and Database: provides auth and database (evidence: `README.md`)
- Player → Game Lobby: enters game (evidence: `README.md`)
- Game Lobby → Firebase Auth and Database: reads player stats (evidence: `Frontend/src/app/lobby/page.js`)
- Player → Player Profile: views profile (evidence: `Frontend/src/app/profile/page.js`)
- Player Profile → Firebase Auth and Database: reads player stats (evidence: `Frontend/src/app/profile/page.js`)
- Player → Game Round: starts round
- Game Round → Campus Point Picker: chooses location (evidence: `Frontend/src/app/game/page.js`)
- Game Round → Google Maps and Street View: loads Street View (evidence: `README.md`)
- Game Round → Guess Map: renders map (evidence: `Frontend/src/app/game/page.js`)
- Guess Map → Google Maps and Street View: displays map
- Game Round → Round Score Screen: shows round score (evidence: `Frontend/src/app/game/page.js`)
- Round Score Screen → Game Lobby: returns when complete (evidence: `Frontend/src/app/game/ScoreScreen.js`)
- Player → Result Route: opens result page
- Result Route → Result Score Bar: renders (evidence: `Frontend/src/app/game/result/page.js`)
- Application Layout → Audio Controls: provides audio context (evidence: `Frontend/src/app/layout.js`)
- Application Layout → Settings Modal: renders globally (evidence: `Frontend/src/app/layout.js`)
- Settings Modal → Audio Controls: controls volumes (evidence: `Frontend/src/components/SettingsModal.js`)
- Settings Modal → Firebase Auth and Database: checks sign-in (evidence: `Frontend/src/components/SettingsModal.js`)
