# drk-isoppo/testes-em-python architecture

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

- Interactive diagram: https://gitdiagram.com/drk-isoppo/testes-em-python
- Repository: https://github.com/drk-isoppo/testes-em-python

## Overview

This repository is a small collection of independent Python scripts rather than one integrated product: three interactive games/utilities and an Instagram comment automation script. The user-facing workflows are guessing a number, playing hangman using the bundled word list, sorting entered numbers, and repeatedly posting selected comments to an Instagram post. The scripts run independently; no shared application layer is evident. The automation refers to `frases.txt`, which is not present in the supplied tree, so that input source is omitted. Connections below are limited to relationships visible in the excerpts.

Main entry points: [`adivinhar.py`](https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py) (Number guessing), [`forca.py`](https://github.com/drk-isoppo/testes-em-python/blob/main/forca.py) (Hangman game), [`Spam insta.py`](https://github.com/drk-isoppo/testes-em-python/blob/main/Spam%20insta.py) (Comment automation), [`ppl.txt`](https://github.com/drk-isoppo/testes-em-python/blob/main/ppl.txt) (Word list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_games["Interactive games"]
  node_number_game["Number guessing<br/>[adivinhar.py]"]
  node_number_modes["Mode selection<br/>[adivinhar.py]"]
  node_number_difficulty["Difficulty rounds<br/>[adivinhar.py]"]
  node_hangman["Hangman game<br/>[forca.py]"]
  node_word_list["Word list<br/>[ppl.txt]"]
end

subgraph group_utility["Sorting utility"]
  node_sorter["Bubble sort<br/>[bubble.py]"]
end

subgraph group_automation["Comment automation"]
  node_comment_bot["Comment automation<br/>[Spam insta.py]"]
end

node_user(("User"))
node_instagram["Instagram post"]

node_user -->|"plays"| node_number_game
node_number_game -->|"starts modes"| node_number_modes
node_number_modes -->|"selects round"| node_number_difficulty
node_number_difficulty -->|"requests replay"| node_number_game
node_user -->|"plays"| node_hangman
node_hangman -->|"reads words"| node_word_list
node_user -->|"enters numbers"| node_sorter
node_user -->|"starts script"| node_comment_bot
node_comment_bot -->|"posts comments"| node_instagram

click node_number_game "https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py"
click node_number_modes "https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py"
click node_number_difficulty "https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py"
click node_hangman "https://github.com/drk-isoppo/testes-em-python/blob/main/forca.py"
click node_word_list "https://github.com/drk-isoppo/testes-em-python/blob/main/ppl.txt"
click node_sorter "https://github.com/drk-isoppo/testes-em-python/blob/main/bubble.py"
click node_comment_bot "https://github.com/drk-isoppo/testes-em-python/blob/main/Spam%20insta.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_number_game,node_number_modes,node_number_difficulty,node_hangman,node_word_list,node_user toneBlue
class node_sorter toneAmber
class node_comment_bot toneMint
class node_instagram toneIndigo
```

## Components

### Interactive games

- [Number guessing](https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py): `adivinhar.py`
- [Mode selection](https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py): `adivinhar.py`
- [Difficulty rounds](https://github.com/drk-isoppo/testes-em-python/blob/main/adivinhar.py): `adivinhar.py`
- [Hangman game](https://github.com/drk-isoppo/testes-em-python/blob/main/forca.py): `forca.py`
- [Word list](https://github.com/drk-isoppo/testes-em-python/blob/main/ppl.txt): `ppl.txt`

### Sorting utility

- [Bubble sort](https://github.com/drk-isoppo/testes-em-python/blob/main/bubble.py): `bubble.py`

### Comment automation

- [Comment automation](https://github.com/drk-isoppo/testes-em-python/blob/main/Spam%20insta.py): `Spam insta.py`

### Other components

- **User**
- **Instagram post**

## Connections

- User → Number guessing: plays (evidence: `adivinhar.py`)
- Number guessing → Mode selection: starts modes (evidence: `adivinhar.py`)
- Mode selection → Difficulty rounds: selects round (evidence: `adivinhar.py`)
- Difficulty rounds → Number guessing: requests replay (evidence: `adivinhar.py`)
- User → Hangman game: plays (evidence: `forca.py`)
- Hangman game → Word list: reads words (evidence: `forca.py`)
- User → Bubble sort: enters numbers (evidence: `bubble.py`)
- User → Comment automation: starts script (evidence: `Spam insta.py`)
- Comment automation → Instagram post: posts comments (evidence: `Spam insta.py`)
