# achyutak41/accenture_gamified_practice architecture

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

- Interactive diagram: https://gitdiagram.com/achyutak41/accenture_gamified_practice
- Repository: https://github.com/achyutak41/accenture_gamified_practice

## Overview

Accenture GameLab is an anonymous Flask practice platform: players choose an assessment agent and difficulty, start a timed session, answer generated questions, and review score and accuracy results. The browser also supports the interactive Path Finder route and bubble-question presentation. The graph separates session handling from question generation and the browser interface. Source excerpts show the API and generator modules, but do not expose all route implementations or the template wiring; uncertain links are omitted or dashed.

Main entry points: [`app.py`](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py) (Flask API), [`static/app.js`](https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js) (Game interface), [`agents.py`](https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py) (Agent catalog), [`bubble_agent.py`](https://github.com/achyutak41/accenture_gamified_practice/blob/master/bubble_agent.py) (Bubble questions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Practice interface"]
  node_web_ui["Game interface<br/>[app.js]"]
end

subgraph group_api["Session API"]
  node_flask_app["Flask API<br/>[app.py]"]
  node_session_state[("Session state<br/>[app.py]")]
  node_session_timer["Timed sessions<br/>[app.py]"]
  node_answer_scoring["Answer scoring<br/>[app.py]"]
  node_results["Session results<br/>[app.py]"]
end

subgraph group_questions["Question engines"]
  node_agent_catalog["Agent catalog<br/>[agents.py]"]
  node_procedural_agents["Procedural agents<br/>[agents.py]"]
  node_bubble_generator["Bubble questions<br/>[bubble_agent.py]"]
end

subgraph group_domain["Assessment modes"]
  node_bubble_ui["Bubble interaction<br/>[app.js]"]
  node_pathfinder_ui["Path Finder maze<br/>[app.js]"]
  node_pathfinder_validation["Path validation<br/>[app.py]"]
  node_other_games["Assessment games<br/>[agents.py]"]
end

node_player(("Player"))

node_player -->|"plays"| node_web_ui
node_web_ui -->|"requests API"| node_flask_app
node_flask_app -->|"stores sessions"| node_session_state
node_flask_app -->|"enforces time"| node_session_timer
node_flask_app -->|"scores answers"| node_answer_scoring
node_flask_app -->|"serves results"| node_results
node_flask_app -->|"imports catalog"| node_agent_catalog
node_flask_app -.->|"generates questions"| node_procedural_agents
node_flask_app -->|"imports generator"| node_bubble_generator
node_web_ui -->|"renders bubbles"| node_bubble_ui
node_web_ui -->|"renders maze"| node_pathfinder_ui
node_flask_app -->|"validates paths"| node_pathfinder_validation
node_agent_catalog -->|"defines games"| node_other_games
node_web_ui -.->|"requests questions"| node_bubble_generator

click node_web_ui "https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js"
click node_flask_app "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_session_state "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_session_timer "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_answer_scoring "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_results "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_agent_catalog "https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py"
click node_procedural_agents "https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py"
click node_bubble_generator "https://github.com/achyutak41/accenture_gamified_practice/blob/master/bubble_agent.py"
click node_bubble_ui "https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js"
click node_pathfinder_ui "https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js"
click node_pathfinder_validation "https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py"
click node_other_games "https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py"

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_web_ui toneBlue
class node_flask_app,node_session_state,node_session_timer,node_answer_scoring,node_results toneAmber
class node_agent_catalog,node_procedural_agents,node_bubble_generator toneMint
class node_bubble_ui,node_pathfinder_ui,node_pathfinder_validation,node_other_games toneRose
class node_player toneIndigo
```

## Components

### Practice interface

- [Game interface](https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js): `static/app.js`

### Session API

- [Flask API](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`
- [Session state](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`
- [Timed sessions](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`
- [Answer scoring](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`
- [Session results](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`

### Question engines

- [Agent catalog](https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py): `agents.py`
- [Procedural agents](https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py): `agents.py`
- [Bubble questions](https://github.com/achyutak41/accenture_gamified_practice/blob/master/bubble_agent.py): `bubble_agent.py`

### Assessment modes

- [Bubble interaction](https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js): `static/app.js`
- [Path Finder maze](https://github.com/achyutak41/accenture_gamified_practice/blob/master/static/app.js): `static/app.js`
- [Path validation](https://github.com/achyutak41/accenture_gamified_practice/blob/master/app.py): `app.py`
- [Assessment games](https://github.com/achyutak41/accenture_gamified_practice/blob/master/agents.py): `agents.py`

### Other components

- **Player**

## Connections

- Player → Game interface: plays (evidence: `README.md`)
- Game interface → Flask API: requests API (evidence: `static/app.js`)
- Flask API → Session state: stores sessions (evidence: `app.py`)
- Flask API → Timed sessions: enforces time (evidence: `app.py`)
- Flask API → Answer scoring: scores answers (evidence: `app.py`)
- Flask API → Session results: serves results (evidence: `app.py`)
- Flask API → Agent catalog: imports catalog (evidence: `app.py`)
- Flask API → Procedural agents: generates questions (evidence: `app.py`)
- Flask API → Bubble questions: imports generator (evidence: `app.py`)
- Game interface → Bubble interaction: renders bubbles (evidence: `static/app.js`)
- Game interface → Path Finder maze: renders maze (evidence: `static/app.js`)
- Flask API → Path validation: validates paths (evidence: `app.py`)
- Agent catalog → Assessment games: defines games (evidence: `agents.py`)
- Game interface → Bubble questions: requests questions
