# ashelledsouza/codsoft_august-batch-c15 architecture

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

- Interactive diagram: https://gitdiagram.com/ashelledsouza/codsoft_august-batch-c15
- Repository: https://github.com/ashelledsouza/codsoft_august-batch-c15

## Overview

This repository is a collection of five independent, interactive Python command-line programs, not a shared application. Each file owns its own menu or prompt loop and performs its task in memory, printing results directly to the user. The graph keeps those separate workflows distinct; each workflow’s functions and state are shown together because they are implemented in the same file. No README or shared services are present.

Main entry points: [`TASK4.py`](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py) (Game loop), [`TASK3.py`](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK3.py) (Prompt loop), [`TASK1.py`](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK1.py) (Menu and task operations), [`TASK5.py`](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK5.py) (Menu and contact operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_todo["To-do list"]
  node_todo_app["Menu and task operations<br/>[TASK1.py]"]
  node_todo_state[("In-memory tasks<br/>[TASK1.py]")]
end

subgraph group_calculator["Calculator"]
  node_calc_app["Menu and arithmetic<br/>[TASK2.py]"]
end

subgraph group_password["Password generator"]
  node_password_app["Prompt loop<br/>[TASK3.py]"]
  node_password_gen["Password generation<br/>[TASK3.py]"]
end

subgraph group_game["Rock paper scissors"]
  node_game_app["Game loop<br/>[TASK4.py]"]
  node_game_random["Computer choice<br/>[TASK4.py]"]
  node_game_rules["Winner rules<br/>[TASK4.py]"]
end

subgraph group_contacts["Contact book"]
  node_contacts_app["Menu and contact operations<br/>[TASK5.py]"]
  node_contacts_state[("In-memory contacts<br/>[TASK5.py]")]
end

node_todo_user(("User"))
node_calc_user(("User"))
node_password_user(("User"))
node_game_user(("Player"))
node_contacts_user(("User"))

node_todo_user -->|"chooses actions"| node_todo_app
node_todo_app -->|"reads and updates"| node_todo_state
node_todo_app -->|"prints results"| node_todo_user
node_calc_user -->|"enters operation"| node_calc_app
node_calc_app -->|"prints result"| node_calc_user
node_password_user -->|"enters options"| node_password_app
node_password_app -->|"calls generator"| node_password_gen
node_password_gen -->|"returns password"| node_password_app
node_password_app -->|"prints password"| node_password_user
node_game_user -->|"chooses move"| node_game_app
node_game_app -->|"chooses computer move"| node_game_random
node_game_app -->|"checks winner"| node_game_rules
node_game_rules -->|"returns result"| node_game_app
node_game_app -->|"prints outcome"| node_game_user
node_contacts_user -->|"chooses action"| node_contacts_app
node_contacts_app -->|"reads and updates"| node_contacts_state
node_contacts_app -->|"prints results"| node_contacts_user

click node_todo_app "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK1.py"
click node_todo_state "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK1.py"
click node_calc_app "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK2.py"
click node_password_app "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK3.py"
click node_password_gen "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK3.py"
click node_game_app "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py"
click node_game_random "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py"
click node_game_rules "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py"
click node_contacts_app "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK5.py"
click node_contacts_state "https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK5.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_todo_app,node_todo_state,node_todo_user,node_calc_user,node_password_user,node_contacts_user toneBlue
class node_calc_app toneAmber
class node_password_app,node_password_gen toneMint
class node_game_app,node_game_random,node_game_rules toneRose
class node_contacts_app,node_contacts_state,node_game_user toneIndigo
```

## Components

### To-do list

- [Menu and task operations](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK1.py): `TASK1.py`
- [In-memory tasks](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK1.py): `TASK1.py`

### Calculator

- [Menu and arithmetic](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK2.py): `TASK2.py`

### Password generator

- [Prompt loop](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK3.py): `TASK3.py`
- [Password generation](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK3.py): `TASK3.py`

### Rock paper scissors

- [Game loop](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py): `TASK4.py`
- [Computer choice](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py): `TASK4.py`
- [Winner rules](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK4.py): `TASK4.py`

### Contact book

- [Menu and contact operations](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK5.py): `TASK5.py`
- [In-memory contacts](https://github.com/ashelledsouza/codsoft_august-batch-c15/blob/main/TASK5.py): `TASK5.py`

### Other components

- **User**
- **User**
- **User**
- **Player**
- **User**

## Connections

- User → Menu and task operations: chooses actions (evidence: `TASK1.py`)
- Menu and task operations → In-memory tasks: reads and updates (evidence: `TASK1.py`)
- Menu and task operations → User: prints results (evidence: `TASK1.py`)
- User → Menu and arithmetic: enters operation (evidence: `TASK2.py`)
- Menu and arithmetic → User: prints result (evidence: `TASK2.py`)
- User → Prompt loop: enters options (evidence: `TASK3.py`)
- Prompt loop → Password generation: calls generator (evidence: `TASK3.py`)
- Password generation → Prompt loop: returns password (evidence: `TASK3.py`)
- Prompt loop → User: prints password (evidence: `TASK3.py`)
- Player → Game loop: chooses move (evidence: `TASK4.py`)
- Game loop → Computer choice: chooses computer move (evidence: `TASK4.py`)
- Game loop → Winner rules: checks winner (evidence: `TASK4.py`)
- Winner rules → Game loop: returns result (evidence: `TASK4.py`)
- Game loop → Player: prints outcome (evidence: `TASK4.py`)
- User → Menu and contact operations: chooses action (evidence: `TASK5.py`)
- Menu and contact operations → In-memory contacts: reads and updates (evidence: `TASK5.py`)
- Menu and contact operations → User: prints results (evidence: `TASK5.py`)
