# fabio-a-sa/y3s1-progfuncionallogica architecture

> Architecture diagram of the GitHub repository fabio-a-sa/y3s1-progfuncionallogica, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fabio-a-sa/y3s1-progfuncionallogica
- Repository: https://github.com/fabio-a-sa/y3s1-progfuncionallogica

## Overview

##### Main Components Structure

a) Educational Materials
- Notes Module (split into two tracks)
- Exercises Module (split into two tracks)
- Workshop Module

b) Project Components
- Project 1 (Haskell)
- Project 2 (Prolog)

##### Detailed Component Breakdown

For the Educational Materials:
- Haskell Track (7 topics, arranged sequentially)
- Prolog Track (7 topics, arranged sequentially)

- Haskell (subdivided into Fichas, Livro, and TP)
- Prolog (showing sequential TPs and Exercises)

- Assets (slides, logos, memes)
- Code Examples
- Web Interface (HTML/CSS)

For the Projects:
- Project 1 (Haskell):
- Main components (AuxFunc, Main, Polynom, Tests)
- Data flow between components
- Polynomial manipulation functionality

- Project 2 (Prolog):
- Game components (board, configurations, data, main, utils)
- Interaction between components
- AI/Minimax implementation

##### Component Relationships

Key relationships:
- Connection between theoretical notes and practical exercises
- Link between educational materials and their corresponding projects
- Workshop's relationship with the Prolog track
- Dependencies between project components

##### Additional Elements

Include:
- Grade information (19/20)
- Technology stack indicators (Haskell, Prolog)
- Course context (Y3S1)
- Documentation references

## Diagram (Mermaid)

```mermaid
graph TB
    %% Main Sections
    subgraph Educational["Educational Materials"]
        Notes["Notes Module"]
        Exercises["Exercises Module"]
        Workshop["Workshop"]:::workshop
    end

    subgraph Projects["Project Implementations"]
        Project1["Project 1 - Haskell"]:::haskell
        Project2["Project 2 - Prolog"]:::prolog
    end

    %% Notes Section
    subgraph NotesContent["Notes Content"]
        HaskellNotes["Haskell Track"]:::haskell
        PrologNotes["Prolog Track"]:::prolog
    end

    %% Exercises Section
    subgraph ExercisesContent["Exercises Content"]
        HaskellEx["Haskell Exercises"]:::haskell
        PrologEx["Prolog Exercises"]:::prolog
    end

    %% Workshop Components
    subgraph WorkshopContent["Workshop Components"]
        Assets["Assets"]:::asset
        CodeExamples["Code Examples"]:::code
        WebInterface["Web Interface"]:::web
    end

    %% Project 1 Components
    subgraph Project1Components["Project 1 Structure"]
        Main1["Main Implementation"]:::haskell
        AuxFunc["Auxiliary Functions"]:::haskell
        Polynom["Polynomial Manipulation"]:::haskell
        Tests["Testing Module"]:::haskell
    end

    %% Project 2 Components
    subgraph Project2Components["Project 2 Structure"]
        Main2["Main Game Logic"]:::prolog
        Board["Board Implementation"]:::prolog
        Config["Game Configurations"]:::prolog
        Data["Data Management"]:::prolog
        Utils["Utility Functions"]:::prolog
    end

    %% Relationships
    Notes --> NotesContent
    Exercises --> ExercisesContent
    Workshop --> WorkshopContent
    HaskellNotes --> Project1
    PrologNotes --> Project2
    HaskellEx --> Project1
    PrologEx --> Project2
    Project1 --> Project1Components
    Project2 --> Project2Components

    %% Component Interactions
    Main1 --> AuxFunc
    Main1 --> Polynom
    Polynom --> Tests
    Main2 --> Board
    Main2 --> Config
    Board --> Data
    Board --> Utils

    %% Click Events
    click HaskellNotes "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Notes/Haskell"
    click PrologNotes "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Notes/Prolog"
    click HaskellEx "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Exercises/Haskell"
    click PrologEx "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Exercises/Prolog"
    click Workshop "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Workshop"
    click Assets "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Workshop/assets"
    click CodeExamples "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/tree/main/Workshop/code"
    click WebInterface "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Workshop/index.html"
    click Main1 "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project1/src/Main.hs"
    click AuxFunc "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project1/src/AuxFunc.hs"
    click Polynom "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project1/src/Polynom.hs"
    click Tests "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project1/src/Tests.hs"
    click Main2 "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project2/src/main.pl"
    click Board "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project2/src/board.pl"
    click Config "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project2/src/configurations.pl"
    click Data "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project2/src/data.pl"
    click Utils "https://github.com/Fabio-A-Sa/Y3S1-ProgFuncionalLogica/blob/main/Project2/src/utils.pl"

    %% Styling
    classDef haskell fill:#3572A5,stroke:#333,stroke-width:2px;
    classDef prolog fill:#74283c,stroke:#333,stroke-width:2px;
    classDef workshop fill:#FF8C00,stroke:#333,stroke-width:2px;
    classDef asset fill:#808080,stroke:#333,stroke-width:2px;
    classDef code fill:#90EE90,stroke:#333,stroke-width:2px;
    classDef web fill:#FFB6C1,stroke:#333,stroke-width:2px;
```
