# srfoster/oc_cs110_f26 architecture

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

- Interactive diagram: https://gitdiagram.com/srfoster/oc_cs110_f26
- Repository: https://github.com/srfoster/oc_cs110_f26

## Overview

This repository is a collection of classroom Python projects, not one integrated application. The clearest user-to-result flows are several independent interactive programs: a prison-token GUI, a warden decision game, loan-model demonstrations, and a topic menu about weapons of math destruction. Other project and exercise files are standalone or have no documented integration. Connections below follow shown calls or imports that are explicitly used; unsampled modules are retained as project components, but their internal behavior and connections are not inferred.

Main entry points: [`group_projects/Judgement/main.py`](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/main.py) (Warden game), [`group_projects/What_are_WMDs/main.py`](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/main.py) (Topic menu), [`Prisoners_of_AI/main.py`](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/main.py) (Prison GUI), [`group_projects/PIE_THON/main.py/main.py`](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/main.py) (Loan demo menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prisoners["Prisoners of AI"]
  node_prison_ui["Prison GUI<br/>[main.py]"]
  node_tokenizer["Token processing<br/>[Nathan_morris.py]"]
  node_criminal_text["Criminal text"]
  node_networth_ui["Net worth form<br/>[thuc_tran.py]"]
  node_financial_math["Financial calculations<br/>[thuc_tran.py]"]
  node_prison_helper["Prison project helper"]
  node_prison_extra["Prison project extra"]
end

subgraph group_judgement["Warden’s Judgement"]
  node_warden_ui["Warden game<br/>[main.py]"]
  node_warden_theme["Game settings<br/>[jet.py]"]
  node_case_alexander["Case profiles<br/>[alexander.py]"]
  node_case_christian["Case profiles<br/>[christian.py]"]
  node_case_raily["Case profiles<br/>[raily.py]"]
  node_case_joey["Case profiles<br/>[joey.py]"]
end

subgraph group_group_projects["Other Group Projects"]
  node_wmd_menu["Topic menu<br/>[main.py]"]
  node_opacity_module["Opacity lesson"]
  node_scale_module["Scale topic"]
  node_damage_module["Damaging topic"]
  node_story_module["Interactive story<br/>[Evan_text_Story.py]"]
  node_quiz_module["Knowledge quiz"]
  node_loan_menu["Loan demo menu<br/>[main.py]"]
  node_loan_one["Loan model"]
  node_loan_two["Loan model<br/>[matt_kaha.py]"]
  node_loan_three["Loan model<br/>[diego_caskey.py]"]
  node_hiring_ui["Hiring quiz<br/>[main.py]"]
  node_hiring_marcus["Question set<br/>[marcus_grib.py]"]
  node_hiring_dj["Question set<br/>[dj_peeples.py]"]
  node_hiring_holden["Hiring extra<br/>[holden_zack.py]"]
end

subgraph group_exercises["Class Exercises"]
  node_exercise_diego["Class exercise<br/>[diego_caskey.py]"]
  node_exercise_jet["Class exercise<br/>[jet.py]"]
  node_exercise_marcus["Class exercise<br/>[marcus_grib.py]"]
  node_exercise_wilkerson["Class exercise"]
  node_exercise_collection["Other exercises"]
end

node_user(("User"))

node_user -->|"enters text"| node_prison_ui
node_prison_ui -->|"sends text"| node_tokenizer
node_prison_ui -->|"reads tokens"| node_tokenizer
node_prison_ui -->|"gets text"| node_criminal_text
node_prison_ui -->|"creates form"| node_networth_ui
node_tokenizer -->|"uses calculations"| node_financial_math
node_user -.->|"makes decisions"| node_warden_ui
node_warden_ui -->|"uses settings"| node_warden_theme
node_warden_ui -->|"uses profiles"| node_case_alexander
node_warden_ui -->|"uses profiles"| node_case_christian
node_warden_ui -->|"uses profiles"| node_case_raily
node_warden_ui -->|"uses profiles"| node_case_joey
node_user -->|"chooses topic"| node_wmd_menu
node_wmd_menu -->|"runs lesson"| node_opacity_module
node_wmd_menu -.->|"selects topic"| node_scale_module
node_wmd_menu -.->|"selects topic"| node_damage_module
node_wmd_menu -.->|"selects topic"| node_story_module
node_wmd_menu -.->|"selects topic"| node_quiz_module
node_user -->|"chooses model"| node_loan_menu
node_loan_menu -->|"runs model"| node_loan_one
node_loan_menu -->|"runs model"| node_loan_two
node_loan_menu -->|"runs model"| node_loan_three
node_user -->|"answers questions"| node_hiring_ui
node_hiring_ui -->|"gets questions"| node_hiring_marcus
node_hiring_ui -->|"gets questions"| node_hiring_dj
node_user -.->|"runs exercises"| node_exercise_collection

click node_prison_ui "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/main.py"
click node_tokenizer "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Nathan_morris.py"
click node_criminal_text "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Lucas_Van_Wyhe_Criminals.py"
click node_networth_ui "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/thuc_tran.py"
click node_financial_math "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/thuc_tran.py"
click node_prison_helper "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Nathan_vonheeder.py"
click node_prison_extra "https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/pheejay_deguzman.py"
click node_warden_ui "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/main.py"
click node_warden_theme "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/jet.py"
click node_case_alexander "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/alexander.py"
click node_case_christian "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/christian.py"
click node_case_raily "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/raily.py"
click node_case_joey "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/joey.py"
click node_wmd_menu "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/main.py"
click node_opacity_module "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/sylvester_opacity_module.py"
click node_scale_module "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/alex_scale_module.py"
click node_damage_module "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/ryan_henricks_damaging.py"
click node_story_module "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/Evan_text_Story.py"
click node_quiz_module "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/Keiichi_Furui_Quizes.py"
click node_loan_menu "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/main.py"
click node_loan_one "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/marcus_wilkerson.py"
click node_loan_two "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/matt_kaha.py"
click node_loan_three "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/diego_caskey.py"
click node_hiring_ui "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/main.py"
click node_hiring_marcus "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/marcus_grib.py"
click node_hiring_dj "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/dj_peeples.py"
click node_hiring_holden "https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/holden_zack.py"
click node_exercise_diego "https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/diego_caskey.py"
click node_exercise_jet "https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/jet.py"
click node_exercise_marcus "https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/marcus_grib.py"
click node_exercise_wilkerson "https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/marcus_wilkerson.py"
click node_exercise_collection "https://github.com/srfoster/oc_cs110_f26/tree/main/in_class_exercises"

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_prison_ui,node_tokenizer,node_criminal_text,node_networth_ui,node_financial_math,node_prison_helper,node_prison_extra,node_user toneBlue
class node_warden_ui,node_warden_theme,node_case_alexander,node_case_christian,node_case_raily,node_case_joey toneAmber
class node_wmd_menu,node_opacity_module,node_scale_module,node_damage_module,node_story_module,node_quiz_module,node_loan_menu,node_loan_one,node_loan_two,node_loan_three,node_hiring_ui,node_hiring_marcus,node_hiring_dj,node_hiring_holden toneMint
class node_exercise_diego,node_exercise_jet,node_exercise_marcus,node_exercise_wilkerson,node_exercise_collection toneRose
```

## Components

### Prisoners of AI

- [Prison GUI](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/main.py): `Prisoners_of_AI/main.py`
- [Token processing](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Nathan_morris.py): `Prisoners_of_AI/Nathan_morris.py`
- [Criminal text](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Lucas_Van_Wyhe_Criminals.py): `Prisoners_of_AI/Lucas_Van_Wyhe_Criminals.py`
- [Net worth form](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/thuc_tran.py): `Prisoners_of_AI/thuc_tran.py`
- [Financial calculations](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/thuc_tran.py): `Prisoners_of_AI/thuc_tran.py`
- [Prison project helper](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/Nathan_vonheeder.py): `Prisoners_of_AI/Nathan_vonheeder.py`
- [Prison project extra](https://github.com/srfoster/oc_cs110_f26/blob/main/Prisoners_of_AI/pheejay_deguzman.py): `Prisoners_of_AI/pheejay_deguzman.py`

### Warden’s Judgement

- [Warden game](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/main.py): `group_projects/Judgement/main.py`
- [Game settings](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/jet.py): `group_projects/Judgement/jet.py`
- [Case profiles](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/alexander.py): `group_projects/Judgement/alexander.py`
- [Case profiles](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/christian.py): `group_projects/Judgement/christian.py`
- [Case profiles](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/raily.py): `group_projects/Judgement/raily.py`
- [Case profiles](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Judgement/joey.py): `group_projects/Judgement/joey.py`

### Other Group Projects

- [Topic menu](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/main.py): `group_projects/What_are_WMDs/main.py`
- [Opacity lesson](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/sylvester_opacity_module.py): `group_projects/What_are_WMDs/sylvester_opacity_module.py`
- [Scale topic](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/alex_scale_module.py): `group_projects/What_are_WMDs/alex_scale_module.py`
- [Damaging topic](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/ryan_henricks_damaging.py): `group_projects/What_are_WMDs/ryan_henricks_damaging.py`
- [Interactive story](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/Evan_text_Story.py): `group_projects/What_are_WMDs/Evan_text_Story.py`
- [Knowledge quiz](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/What_are_WMDs/Keiichi_Furui_Quizes.py): `group_projects/What_are_WMDs/Keiichi_Furui_Quizes.py`
- [Loan demo menu](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/main.py): `group_projects/PIE_THON/main.py/main.py`
- [Loan model](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/marcus_wilkerson.py): `group_projects/PIE_THON/main.py/marcus_wilkerson.py`
- [Loan model](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/matt_kaha.py): `group_projects/PIE_THON/main.py/matt_kaha.py`
- [Loan model](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/PIE_THON/main.py/diego_caskey.py): `group_projects/PIE_THON/main.py/diego_caskey.py`
- [Hiring quiz](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/main.py): `group_projects/Arasaka Corp/main.py`
- [Question set](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/marcus_grib.py): `group_projects/Arasaka Corp/marcus_grib.py`
- [Question set](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/dj_peeples.py): `group_projects/Arasaka Corp/dj_peeples.py`
- [Hiring extra](https://github.com/srfoster/oc_cs110_f26/blob/main/group_projects/Arasaka%20Corp/holden_zack.py): `group_projects/Arasaka Corp/holden_zack.py`

### Class Exercises

- [Class exercise](https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/diego_caskey.py): `in_class_exercises/diego_caskey.py`
- [Class exercise](https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/jet.py): `in_class_exercises/jet.py`
- [Class exercise](https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/marcus_grib.py): `in_class_exercises/marcus_grib.py`
- [Class exercise](https://github.com/srfoster/oc_cs110_f26/blob/main/in_class_exercises/marcus_wilkerson.py): `in_class_exercises/marcus_wilkerson.py`
- [Other exercises](https://github.com/srfoster/oc_cs110_f26/tree/main/in_class_exercises): `in_class_exercises`

### Other components

- **User**

## Connections

- User → Prison GUI: enters text (evidence: `Prisoners_of_AI/main.py`)
- Prison GUI → Token processing: sends text (evidence: `Prisoners_of_AI/main.py`)
- Prison GUI → Token processing: reads tokens (evidence: `Prisoners_of_AI/main.py`)
- Prison GUI → Criminal text: gets text (evidence: `Prisoners_of_AI/main.py`)
- Prison GUI → Net worth form: creates form (evidence: `Prisoners_of_AI/main.py`)
- Token processing → Financial calculations: uses calculations (evidence: `Prisoners_of_AI/Nathan_morris.py`)
- User → Warden game: makes decisions
- Warden game → Game settings: uses settings (evidence: `group_projects/Judgement/main.py`)
- Warden game → Case profiles: uses profiles (evidence: `group_projects/Judgement/main.py`)
- Warden game → Case profiles: uses profiles (evidence: `group_projects/Judgement/main.py`)
- Warden game → Case profiles: uses profiles (evidence: `group_projects/Judgement/main.py`)
- Warden game → Case profiles: uses profiles (evidence: `group_projects/Judgement/main.py`)
- User → Topic menu: chooses topic (evidence: `group_projects/What_are_WMDs/main.py`)
- Topic menu → Opacity lesson: runs lesson (evidence: `group_projects/What_are_WMDs/main.py`)
- Topic menu → Scale topic: selects topic
- Topic menu → Damaging topic: selects topic
- Topic menu → Interactive story: selects topic
- Topic menu → Knowledge quiz: selects topic
- User → Loan demo menu: chooses model (evidence: `group_projects/PIE_THON/main.py/main.py`)
- Loan demo menu → Loan model: runs model (evidence: `group_projects/PIE_THON/main.py/main.py`)
- Loan demo menu → Loan model: runs model (evidence: `group_projects/PIE_THON/main.py/main.py`)
- Loan demo menu → Loan model: runs model (evidence: `group_projects/PIE_THON/main.py/main.py`)
- User → Hiring quiz: answers questions (evidence: `group_projects/Arasaka Corp/main.py`)
- Hiring quiz → Question set: gets questions (evidence: `group_projects/Arasaka Corp/main.py`)
- Hiring quiz → Question set: gets questions (evidence: `group_projects/Arasaka Corp/main.py`)
- User → Other exercises: runs exercises
