# vaishnavik0908-cell/codsoft_tasksno architecture

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

- Interactive diagram: https://gitdiagram.com/vaishnavik0908-cell/codsoft_tasksno
- Repository: https://github.com/vaishnavik0908-cell/codsoft_tasksno

## Overview

This repository is a collection of three small terminal applications: StudentBuddy, a Tic-Tac-Toe game with a minimax opponent, and a movie recommender. The main documented workflow is entering a question and receiving a rule-matched chatbot response; the other scripts provide separate play and recommendation workflows. The source excerpts show these applications are self-contained, with no shared runtime services. The recommendation script exists both at the root and under Task-3; both paths implement the same standalone workflow. Evidence is limited to the supplied excerpts and README.

Main entry points: [`Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py) (Game loop), [`chatbot.py`](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/chatbot.py) (Chat loop and rules), [`Task-3-Recommendation-System/recommendation-system.py`](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-3-Recommendation-System/recommendation-system.py) (Movie lookup and output), [`recommendation-system.py`](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/recommendation-system.py) (Movie lookup and output)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studentbuddy["StudentBuddy Chatbot"]
  node_chat_app["Chat loop and rules<br/>[chatbot.py]"]
end

subgraph group_tictactoe["Tic-Tac-Toe AI"]
  node_game_loop["Game loop<br/>[tic_tac_toe.py]"]
  node_board_display["Board display<br/>[tic_tac_toe.py]"]
  node_player_move["Player move input<br/>[tic_tac_toe.py]"]
  node_ai_move["AI move selection<br/>[tic_tac_toe.py]"]
  node_minimax["Minimax search<br/>[tic_tac_toe.py]"]
  node_win_check["Win check<br/>[tic_tac_toe.py]"]
  node_board_full["Draw check<br/>[tic_tac_toe.py]"]
end

subgraph group_recommendations["Movie Recommender"]
  node_recommender_task["Movie lookup and output"]
  node_recommender_root["Movie lookup and output"]
end

node_chat_user(("Terminal user"))
node_game_player(("Human player"))
node_rec_user(("Terminal user"))

node_chat_user -->|"enters questions"| node_chat_app
node_chat_app -->|"prints replies"| node_chat_user
node_game_player -->|"starts game"| node_game_loop
node_game_loop -->|"renders board"| node_board_display
node_game_loop -->|"requests move"| node_player_move
node_game_loop -->|"requests AI move"| node_ai_move
node_game_loop -->|"checks winner"| node_win_check
node_game_loop -->|"checks draw"| node_board_full
node_ai_move -->|"scores moves"| node_minimax
node_minimax -->|"tests outcomes"| node_win_check
node_minimax -->|"tests draws"| node_board_full
node_rec_user -->|"enters movie"| node_recommender_task
node_recommender_task -->|"prints suggestions"| node_rec_user
node_rec_user -->|"enters movie"| node_recommender_root
node_recommender_root -->|"prints suggestions"| node_rec_user

click node_chat_app "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/chatbot.py"
click node_game_loop "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_board_display "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_player_move "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_ai_move "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_minimax "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_win_check "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_board_full "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py"
click node_recommender_task "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-3-Recommendation-System/recommendation-system.py"
click node_recommender_root "https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/recommendation-system.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_chat_app,node_chat_user,node_rec_user toneBlue
class node_game_loop,node_board_display,node_player_move,node_ai_move,node_minimax,node_win_check,node_board_full toneAmber
class node_recommender_task,node_recommender_root toneMint
class node_game_player toneIndigo
```

## Components

### StudentBuddy Chatbot

- [Chat loop and rules](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/chatbot.py): `chatbot.py`

### Tic-Tac-Toe AI

- [Game loop](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [Board display](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [Player move input](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [AI move selection](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [Minimax search](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [Win check](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`
- [Draw check](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-2-Tic-Tac-Toe-AI%20/tic_tac_toe.py): `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`

### Movie Recommender

- [Movie lookup and output](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/Task-3-Recommendation-System/recommendation-system.py): `Task-3-Recommendation-System/recommendation-system.py`
- [Movie lookup and output](https://github.com/vaishnavik0908-cell/codsoft_tasksno/blob/main/recommendation-system.py): `recommendation-system.py`

### Other components

- **Terminal user**
- **Human player**
- **Terminal user**

## Connections

- Terminal user → Chat loop and rules: enters questions (evidence: `chatbot.py`)
- Chat loop and rules → Terminal user: prints replies (evidence: `chatbot.py`)
- Human player → Game loop: starts game (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Game loop → Board display: renders board (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Game loop → Player move input: requests move (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Game loop → AI move selection: requests AI move (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Game loop → Win check: checks winner (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Game loop → Draw check: checks draw (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- AI move selection → Minimax search: scores moves (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Minimax search → Win check: tests outcomes (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Minimax search → Draw check: tests draws (evidence: `Task-2-Tic-Tac-Toe-AI /tic_tac_toe.py`)
- Terminal user → Movie lookup and output: enters movie (evidence: `Task-3-Recommendation-System/recommendation-system.py`)
- Movie lookup and output → Terminal user: prints suggestions (evidence: `Task-3-Recommendation-System/recommendation-system.py`)
- Terminal user → Movie lookup and output: enters movie (evidence: `recommendation-system.py`)
- Movie lookup and output → Terminal user: prints suggestions (evidence: `recommendation-system.py`)
