# rodrigocaz/mycourt architecture

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

- Interactive diagram: https://gitdiagram.com/rodrigocaz/mycourt
- Repository: https://github.com/rodrigocaz/mycourt

## Overview

This repository is a collection of independent CS50 exercises, not one integrated application. Users provide input to individual command-line programs or a Scratch trivia project and receive a calculation, transformed text, a reading grade, or election results. The C exercises range from basic input/output and arithmetic to text processing and two election models. The excerpts show the programs’ internal calls; the tree also contains compiled artifacts and data files, which are not runtime components. No README is present, so the Scratch project’s internal behavior is not detailed here.

Main entry points: [`cx50/week3/runoff/runoff.c`](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c) (Ranked Election), [`cx50/week2/caesar.c`](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c) (Caesar Cipher), [`cx50/week3/plurality/plurality.c`](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c) (Plurality Election), [`cx50/week1/cash.c`](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/cash.c) (Change Calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Week 1 Basics"]
  node_hello["Greeting<br/>[hello.c]"]
  node_cash["Change Calculator<br/>[cash.c]"]
  node_cash_count["Coin Counting<br/>[cash.c]"]
  node_credit["Card Classifier<br/>[credit.c]"]
  node_credit_checksum["Luhn Check<br/>[credit.c]"]
  node_mario["Mario Builder<br/>[mario.c]"]
  node_mario_rows["Row Rendering<br/>[mario.c]"]
end

subgraph group_text["Week 2 Text"]
  node_caesar["Caesar Cipher<br/>[caesar.c]"]
  node_caesar_validate["Key Validation<br/>[caesar.c]"]
  node_caesar_rotate["Character Rotation<br/>[caesar.c]"]
  node_substitution["Substitution Cipher<br/>[substitution.c]"]
  node_sub_validate["Key Validation<br/>[substitution.c]"]
  node_scrabble["Word Showdown<br/>[scrabble.c]"]
  node_scrabble_score["Letter Scoring<br/>[scrabble.c]"]
  node_readability["Reading Grade<br/>[readability.c]"]
end

subgraph group_elections["Week 3 Elections"]
  node_plurality["Plurality Election<br/>[plurality.c]"]
  node_plurality_vote["Vote Tally<br/>[plurality.c]"]
  node_plurality_winner["Winner Selection<br/>[plurality.c]"]
  node_runoff["Ranked Election<br/>[runoff.c]"]
  node_runoff_preferences["Preference Recording<br/>[runoff.c]"]
  node_runoff_round["Round Tally<br/>[runoff.c]"]
  node_runoff_elimination["Tie Elimination<br/>[runoff.c]"]
end

subgraph group_extras["Other Projects"]
  node_presumir["Sum Two Numbers<br/>[presumir.c]"]
  node_trivia["Trivia Game<br/>[Trivia Game.sb3]"]
end

node_user(("User"))

node_user -->|"enters name"| node_hello
node_user -->|"enters change"| node_cash
node_cash -->|"counts coins"| node_cash_count
node_user -->|"enters card"| node_credit
node_credit -->|"checks digits"| node_credit_checksum
node_user -->|"sets height"| node_mario
node_mario -->|"renders rows"| node_mario_rows
node_user -->|"enters text"| node_caesar
node_caesar -->|"validates key"| node_caesar_validate
node_caesar -->|"rotates characters"| node_caesar_rotate
node_user -->|"enters key and text"| node_substitution
node_substitution -->|"checks key"| node_sub_validate
node_user -->|"enters words"| node_scrabble
node_scrabble -->|"scores words"| node_scrabble_score
node_user -->|"enters text"| node_readability
node_user -->|"enters candidates and votes"| node_plurality
node_plurality -->|"records votes"| node_plurality_vote
node_plurality -->|"selects winner"| node_plurality_winner
node_user -->|"enters candidates and rankings"| node_runoff
node_runoff -->|"records rankings"| node_runoff_preferences
node_runoff -->|"tallies rounds"| node_runoff_round
node_runoff -->|"resolves close rounds"| node_runoff_elimination
node_user -->|"enters numbers"| node_presumir
node_user -->|"plays"| node_trivia

click node_hello "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/hello.c"
click node_cash "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/cash.c"
click node_cash_count "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/cash.c"
click node_credit "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/credit.c"
click node_credit_checksum "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/credit.c"
click node_mario "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/mario.c"
click node_mario_rows "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/mario.c"
click node_caesar "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c"
click node_caesar_validate "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c"
click node_caesar_rotate "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c"
click node_substitution "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/substitution.c"
click node_sub_validate "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/substitution.c"
click node_scrabble "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/scrabble.c"
click node_scrabble_score "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/scrabble.c"
click node_readability "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/readability.c"
click node_plurality "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c"
click node_plurality_vote "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c"
click node_plurality_winner "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c"
click node_runoff "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c"
click node_runoff_preferences "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c"
click node_runoff_round "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c"
click node_runoff_elimination "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c"
click node_presumir "https://github.com/rodrigocaz/mycourt/blob/main/coolthings/presumir.c"
click node_trivia "https://github.com/rodrigocaz/mycourt/blob/main/cx50/week0/Trivia%20Game.sb3"

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_hello,node_cash,node_cash_count,node_credit,node_credit_checksum,node_mario,node_mario_rows,node_user toneBlue
class node_caesar,node_caesar_validate,node_caesar_rotate,node_substitution,node_sub_validate,node_scrabble,node_scrabble_score,node_readability toneAmber
class node_plurality,node_plurality_vote,node_plurality_winner,node_runoff,node_runoff_preferences,node_runoff_round,node_runoff_elimination toneMint
class node_presumir,node_trivia toneRose
```

## Components

### Week 1 Basics

- [Greeting](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/hello.c): `cx50/week1/hello.c`
- [Change Calculator](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/cash.c): `cx50/week1/cash.c`
- [Coin Counting](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/cash.c): `cx50/week1/cash.c`
- [Card Classifier](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/credit.c): `cx50/week1/credit.c`
- [Luhn Check](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/credit.c): `cx50/week1/credit.c`
- [Mario Builder](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/mario.c): `cx50/week1/mario.c`
- [Row Rendering](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week1/mario.c): `cx50/week1/mario.c`

### Week 2 Text

- [Caesar Cipher](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c): `cx50/week2/caesar.c`
- [Key Validation](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c): `cx50/week2/caesar.c`
- [Character Rotation](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/caesar.c): `cx50/week2/caesar.c`
- [Substitution Cipher](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/substitution.c): `cx50/week2/substitution.c`
- [Key Validation](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/substitution.c): `cx50/week2/substitution.c`
- [Word Showdown](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/scrabble.c): `cx50/week2/scrabble.c`
- [Letter Scoring](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/scrabble.c): `cx50/week2/scrabble.c`
- [Reading Grade](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week2/readability.c): `cx50/week2/readability.c`

### Week 3 Elections

- [Plurality Election](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c): `cx50/week3/plurality/plurality.c`
- [Vote Tally](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c): `cx50/week3/plurality/plurality.c`
- [Winner Selection](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/plurality/plurality.c): `cx50/week3/plurality/plurality.c`
- [Ranked Election](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c): `cx50/week3/runoff/runoff.c`
- [Preference Recording](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c): `cx50/week3/runoff/runoff.c`
- [Round Tally](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c): `cx50/week3/runoff/runoff.c`
- [Tie Elimination](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week3/runoff/runoff.c): `cx50/week3/runoff/runoff.c`

### Other Projects

- [Sum Two Numbers](https://github.com/rodrigocaz/mycourt/blob/main/coolthings/presumir.c): `coolthings/presumir.c`
- [Trivia Game](https://github.com/rodrigocaz/mycourt/blob/main/cx50/week0/Trivia%20Game.sb3): `cx50/week0/Trivia Game.sb3`

### Other components

- **User**

## Connections

- User → Greeting: enters name (evidence: `cx50/week1/hello.c`)
- User → Change Calculator: enters change (evidence: `cx50/week1/cash.c`)
- Change Calculator → Coin Counting: counts coins (evidence: `cx50/week1/cash.c`)
- User → Card Classifier: enters card (evidence: `cx50/week1/credit.c`)
- Card Classifier → Luhn Check: checks digits (evidence: `cx50/week1/credit.c`)
- User → Mario Builder: sets height (evidence: `cx50/week1/mario.c`)
- Mario Builder → Row Rendering: renders rows (evidence: `cx50/week1/mario.c`)
- User → Caesar Cipher: enters text (evidence: `cx50/week2/caesar.c`)
- Caesar Cipher → Key Validation: validates key (evidence: `cx50/week2/caesar.c`)
- Caesar Cipher → Character Rotation: rotates characters (evidence: `cx50/week2/caesar.c`)
- User → Substitution Cipher: enters key and text (evidence: `cx50/week2/substitution.c`)
- Substitution Cipher → Key Validation: checks key (evidence: `cx50/week2/substitution.c`)
- User → Word Showdown: enters words (evidence: `cx50/week2/scrabble.c`)
- Word Showdown → Letter Scoring: scores words (evidence: `cx50/week2/scrabble.c`)
- User → Reading Grade: enters text (evidence: `cx50/week2/readability.c`)
- User → Plurality Election: enters candidates and votes (evidence: `cx50/week3/plurality/plurality.c`)
- Plurality Election → Vote Tally: records votes (evidence: `cx50/week3/plurality/plurality.c`)
- Plurality Election → Winner Selection: selects winner (evidence: `cx50/week3/plurality/plurality.c`)
- User → Ranked Election: enters candidates and rankings (evidence: `cx50/week3/runoff/runoff.c`)
- Ranked Election → Preference Recording: records rankings (evidence: `cx50/week3/runoff/runoff.c`)
- Ranked Election → Round Tally: tallies rounds (evidence: `cx50/week3/runoff/runoff.c`)
- Ranked Election → Tie Elimination: resolves close rounds (evidence: `cx50/week3/runoff/runoff.c`)
- User → Sum Two Numbers: enters numbers (evidence: `coolthings/presumir.c`)
- User → Trivia Game: plays
