# pharouqy/codinggames-clashofcode- architecture

> Architecture diagram of the GitHub repository pharouqy/codinggames-clashofcode-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pharouqy/codinggames-clashofcode-
- Repository: https://github.com/pharouqy/codinggames-clashofcode-

## Overview

##### Project Type Analysis
This is a collection of JavaScript algorithm solutions, each file representing a separate coding challenge solution. The project is primarily focused on algorithmic problem-solving rather than being a full-stack application or service.

##### Challenge Categories (Group the solutions into logical categories)
- Mathematical Operations
- String Manipulation
- Array Processing
- Sorting Algorithms
- Game Logic
- Data Conversion
- ASCII Operations
- Cryptography
- Date/Time Calculations

##### Core Features
- Algorithm Implementation
- Problem-Solving Patterns
- Input Processing
- Output Formatting

**[Challenge Categories]**
- ↓
**[Implementation Patterns]**
- ↓
**[Common Utilities]**

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        Math[Mathematical Operations]:::math
        Sort[Sorting Algorithms]:::sort
        Str[String Manipulation]:::string
        ASCII[ASCII Operations]:::ascii
        Crypto[Cryptography]:::crypto
        DateTime[Date/Time Calculations]:::datetime
        Game[Game Logic]:::game
        Data[Data Conversion]:::data
    end

    subgraph Categories
        MathOps[Mathematical Operations]:::math
        SortAlg[Sorting Algorithms]:::sort
        StrManip[String Manipulation]:::string
        ASCIIOps[ASCII Operations]:::ascii
        CryptoOps[Cryptography]:::crypto
        DateTimeCalc[Date/Time Calculations]:::datetime
        GameLogic[Game Logic]:::game
        DataConv[Data Conversion]:::data
    end

    subgraph Mathematical
        Pyth[Pythagoras]:::math
        ArithMean[Arithmetic Mean]:::math
        CalcAngles[Calculate Angles Triangle]:::math
        Fact[Factorial]:::math
        Fib[Fibonacci]:::math
    end

    subgraph Sorting
        Bubble[Bubble Sort]:::sort
        Insert[Insertion Sort]:::sort
        Merge[Merge Sort]:::sort
        Quick[Quick Sort]:::sort
    end

    subgraph Strings
        Rev[Reversed]:::string
        CountL[Count Letters]:::string
        ExtUpper[Extract Uppercase]:::string
        PickLet[Pick Up Letters]:::string
        RevWord[Reverse Word]:::string
    end

    subgraph ASCIIOperations
        ASCIISum[ASCII Sum]:::ascii
        ASCIIArea[Area of ASCII]:::ascii
        ASCIIAvg[Average ASCII]:::ascii
        ASCIICount[Count at ASCII]:::ascii
    end

    subgraph Cryptography
        Affine[Affine Cipher]:::crypto
        Atbash[Atbash Cipher]:::crypto
        Enigma[Enigma]:::crypto
        NOSE[Encode to NOSE]:::crypto
    end

    subgraph DateTime
        FormatDate[Format Date]:::datetime
        TimeMin[Time in Minutes]:::datetime
        NumMin[Number of Minutes]:::datetime
        RemTime[Remaining Time]:::datetime
    end

    subgraph Gaming
        PSR[Game PSR]:::game
        Shifumi[Shifumi]:::game
        CodeGame[Code Game]:::game
        Crewmates[Can Kill All Crewmates]:::game
    end

    subgraph DataConversion
        ColorConv[Color Convert]:::data
        Convert[Convert]:::data
        Binary[Convert to Binary]:::data
        DecNum[Convert to Number Dec]:::data
        Transform[Transformation]:::data
    end

    MathOps --> Mathematical
    SortAlg --> Sorting
    StrManip --> Strings
    ASCIIOps --> ASCIIOperations
    CryptoOps --> Cryptography
    DateTimeCalc --> DateTime
    GameLogic --> Gaming
    DataConv --> DataConversion

    %% Click events for components
    click Pyth "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/Pythagoras.js"
    click ArithMean "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/arithmeticMean.js"
    click CalcAngles "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/calculateAnglesTriagle.js"
    click Fact "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/factorial.js"
    click Fib "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/fibonacci.js"
    
    click Bubble "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/BubbleSorting.js"
    click Insert "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/insertionSorting.js"
    click Merge "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/mergeSorting.js"
    click Quick "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/quikSorting.js"
    
    click Rev "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/Reversed.js"
    click CountL "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/countLetters.js"
    click ExtUpper "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/extractUpperCase.js"
    click PickLet "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/pickUpLetters.js"
    click RevWord "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/reverseWord.js"
    
    click ASCIISum "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/ASCIISum.js"
    click ASCIIArea "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/areaOfASCII.js"
    click ASCIIAvg "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/averageASCII.js"
    click ASCIICount "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/countAtASCII.js"
    
    click Affine "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/affine.js"
    click Atbash "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/atbash.js"
    click Enigma "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/enigma.js"
    click NOSE "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/encodeToNOSE.js"
    
    click FormatDate "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/formateDate.js"
    click TimeMin "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/timeInMinutes.js"
    click NumMin "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/numberOfMinutes.js"
    click RemTime "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/remainingTime.js"
    
    click PSR "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/gamePSR.js"
    click Shifumi "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/shifumi.js"
    click CodeGame "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/codeGame.js"
    click Crewmates "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/canKillAllCrewmates.js"
    
    click ColorConv "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/colorConvert.js"
    click Convert "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/convert.js"
    click Binary "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/convertToBinaire.js"
    click DecNum "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/converToNumberDec.js"
    click Transform "https://github.com/pharouqy/CodingGames-ClashOfCode-/blob/main/transformation.js"

    classDef math fill:#3498db
    classDef sort fill:#9b59b6
    classDef string fill:#2ecc71
    classDef ascii fill:#95a5a6
    classDef crypto fill:#e74c3c
    classDef datetime fill:#f1c40f
    classDef game fill:#e67e22
    classDef data fill:#1abc9c
```
