# ardillachiki/ejercicios_tema_3 architecture

> Architecture diagram of the GitHub repository ardillachiki/ejercicios_tema_3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ardillachiki/ejercicios_tema_3
- Repository: https://github.com/ardillachiki/ejercicios_tema_3

## Overview

Based on your project’s file structure and README, the repository is essentially a collection of four self-contained exercises, each implementing a specific algorithm or functionality:
##### Polynomial operations related to magical “encantamientos” (Ejercicio 4)

The main entry point is the top-level file, main.py, which likely serves as an orchestrator to trigger one or more of these exercise modules. Each exercise is stored in its own directory with its core file (base_ej_N.py) and one or more auxiliaries to implement key functionalities.

##### Main Components
- Main Controller: Represent main.py as the entry point that triggers execution.
- Exercício Modules: Create a separate block/component for each exercise:
- Exercise 1: Tower of Hanoi
- Base module: base_ej_1.py
- Auxiliary module: calculo_torre_hanoi.py
- Exercise 2: Matrix Determinants
- Base module: base_ej_2.py
- Auxiliary module: Metodos.py
- Exercise 3: Spacecraft Management
- Base module: base_ej_3.py
- Auxiliary module: requisitos_ej3_.py
- Exercise 4: Polynomial Operations (‘Encantamientos’)
- Base module: base_ej_4.py
- Auxiliary module: funciones.py

##### Architectural Patterns and Design Principles
- Modularity: Each exercise is encapsulated within its own directory, reinforcing separation of concerns.
- Layering: The base files act as controllers or coordinators that call helper functions from auxiliary modules—this can be noted as an internal layering within each exercise.
- Clear separation: Although all exercises share the same repository, they are completely isolated in their functionality.

##### Relevant Technologies and Technologies Noted
- Python is the underlying language.

##### Detailed Steps for the Principal Software Engineer
- Optionally, you may include a note that further elaborates any specific functions (like ejercicio1(), ejercicio2(), etc.) associated with these base files.

## Diagram (Mermaid)

```mermaid
graph TD
    %% Main Application
    M["main.py"]:::entry

    %% Arrows from main controller to each exercise base module
    M -->|"triggers"| E1["Base Module: base_ej_1.py"]:::base
    M -->|"triggers"| E2["Base Module: base_ej_2.py"]:::base
    M -->|"triggers"| E3["Base Module: base_ej_3.py"]:::base
    M -->|"triggers"| E4["Base Module: base_ej_4.py"]:::base

    %% Exercise 1 – Tower of Hanoi Cluster
    subgraph "Exercise 1 – Tower of Hanoi"
        E1A["Auxiliary: calculo_torre_hanoi.py"]:::helper
        E1 -->|"dependsOn"| E1A
    end

    %% Exercise 2 – Matrix Determinants Cluster
    subgraph "Exercise 2 – Matrix Determinants"
        E2A["Auxiliary: Metodos.py"]:::helper
        E2 -->|"dependsOn"| E2A
    end

    %% Exercise 3 – Spacecraft Management Cluster
    subgraph "Exercise 3 – Spacecraft Management"
        E3A["Auxiliary: requisitos_ej3_.py"]:::helper
        E3 -->|"dependsOn"| E3A
    end

    %% Exercise 4 – Polynomial Operations Cluster
    subgraph "Exercise 4 – Polynomial Operations"
        E4A["Auxiliary: funciones.py"]:::helper
        E4 -->|"dependsOn"| E4A
    end

    %% Click Events
    click M "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/main.py"
    click E1 "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_1_/base_ej_1.py"
    click E1A "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_1_/calculo_torre_hanoi.py"
    click E2 "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_2_/base_ej_2.py"
    click E2A "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_2_/Metodos.py"
    click E3 "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_3_/base_ej_3.py"
    click E3A "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_3_/requisitos_ej3_.py"
    click E4 "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_4_/base_ej_4.py"
    click E4A "https://github.com/ardillachiki/ejercicios_tema_3/blob/main/Ejercicio_4_/funciones.py"

    %% Styles
    classDef entry fill:#ffcc00,stroke:#333,stroke-width:2px;
    classDef base fill:#99ccff,stroke:#333,stroke-width:2px;
    classDef helper fill:#ccffcc,stroke:#333,stroke-width:2px;
```
