Mermaid Adaptive Quiz Logic  3.o

Adaptive Quiz Logic - Interactive Flowchart Scroll to zoom  ·  Drag to pan
graph TD
    START(["Start Concept"]) --> NOTES["Show Notes and Keywords"]
    NOTES --> C1["Concept MCQ 1 - same batch ascending order"]

    C1 --> CC1{"Correct?"}

    CC1 -->|false| C2["Concept MCQ 2 - same batch ascending order"]
    C2 --> CC2{"Correct?"}

    CC2 -->|false| HINT["Show Hint and Explanation"]
    HINT --> C3["Concept MCQ 3 - same batch ascending order"]
    C3 --> CC3{"Correct?"}
    CC3 -->|false| AR_FORCE["Mark Concept Weak - Force Advance to AR"]
    CC3 -->|true| AR

    CC1 -->|true| AR
    CC2 -->|true| AR
    AR_FORCE --> AR

    AR["Present Assertion and Reason MCQ - same batch"]
    AR --> ARC{"Correct?"}

    ARC -->|false| AR_REM["Remedial Concept MCQ - same batch"]
    AR_REM --> AR_REMC{"Correct?"}
    AR_REMC -->|true| AR_RETRY["Retry Assertion and Reason MCQ"]
    AR_REMC -->|false| AR_RETRY
    AR_RETRY --> AR_RC{"Correct?"}
    AR_RC -->|false| MATCH_WEAK["Mark AR Weak - Force Advance to Matching"]
    AR_RC -->|true| MATCH
    MATCH_WEAK --> MATCH

    ARC -->|true| MATCH

    MATCH["Present Matching MCQ - same batch"]
    MATCH --> MC{"Correct?"}

    MC -->|false| MATCH2["Retry Next Matching MCQ - same batch"]
    MATCH2 --> MC2{"Correct?"}
    MC2 -->|true| PASS["Concept Passed - Advance to Next Level"]
    MC2 -->|false| PASS_WEAK["Mark Matching Weak - Advance to Next Level"]

    MC -->|true| PASS

    PASS --> NEXT(["Next Concept or Difficulty Level"])
    PASS_WEAK --> NEXT

    style START      fill:#2ecc71,stroke:#27ae60,color:#fff,stroke-width:2px
    style NEXT       fill:#2ecc71,stroke:#27ae60,color:#fff,stroke-width:2px
    style PASS       fill:#27ae60,stroke:#1e8449,color:#fff,stroke-width:2px
    style PASS_WEAK  fill:#e67e22,stroke:#ca6f1e,color:#fff,stroke-width:2px
    style AR_FORCE   fill:#e67e22,stroke:#ca6f1e,color:#fff,stroke-width:2px
    style MATCH_WEAK fill:#e67e22,stroke:#ca6f1e,color:#fff,stroke-width:2px
    style HINT       fill:#3498db,stroke:#2980b9,color:#fff,stroke-width:2px
    style NOTES      fill:#9b59b6,stroke:#7d3c98,color:#fff,stroke-width:2px

    classDef qNode fill:#fdfefe,stroke:#aab7b8,stroke-width:1.5px
    class C1,C2,C3,AR,AR_REM,AR_RETRY,MATCH,MATCH2 qNode

    classDef decision fill:#fef9e7,stroke:#f39c12,stroke-width:2px
    class CC1,CC2,CC3,ARC,AR_REMC,AR_RC,MC,MC2 decision