ExamSoEasy User Guide

TTTK2173 Data Structures & Algorithms — AI-Assisted Programming Tool

TTTK2173 数据结构与算法 — AI 辅助编程工具

Two Modes

两种模式

ModeURLFunction
模式地址功能
Code code.005917.xyz Read the question, generate code directly into the editor 读取题目,直接在编辑器中生成代码
Text text.005917.xyz Multi-turn conversation, natural language Q&A 多轮对话,自然语言问答

Code Code Generation Mode

Code 代码生成模式

The page reads the assignment question and auto-detects the programming language from the file extension. Click the button to get generated code inserted into the editor.

页面自动读取作业题目,并根据文件扩展名检测编程语言。点击按钮即可将 AI 生成的代码插入编辑器。

  1. Open the page. The VPL editor loads and you can paste assignment question.
  2. Click the VPL button (bottom-right corner). The system sends the question + detected language to the AI backend.
  3. Wait for the response. The button shows "Loading..." during generation.
  4. Generated code is automatically inserted into the editor. Review and submit.
  1. 打开页面,讲题目完整复制进VPL编辑器。
  2. 点击右下角的 VPL 按钮,系统将题目和检测到的语言发送到 AI 后端。
  3. 等待响应,按钮会显示 "Loading..."
  4. 生成的代码自动插入编辑器,检查后即可提交。

Ln1 Col1 Java (Clipboard Solve)

Ln1 Col1 Java(剪贴板求解)

Click Ln1 Col1 Java in the bottom status bar. It reads your clipboard content, uses it as the question, and generates code directly into the editor. Useful when the question is from an external source.

点击底部状态栏的 Ln1 Col1 Java,会直接读取剪贴板中的内容作为题目,并生成代码填入编辑器。适用于题目来自外部的情况。

Supported Languages (auto-detected by file extension)

支持的语言(根据文件扩展名自动检测)

Java (.java) Python (.py) C++ (.cpp / .cc) C (.c) JavaScript (.js) C# (.cs) Ruby (.rb) Go (.go) PHP (.php)

Text Natural Language Chat Mode

Text 自然语言对话模式

A multi-turn chat interface inside the VPL editor. Type your question, get an AI reply, and continue the conversation. Context is preserved within the session.

在 VPL 编辑器内的多轮对话界面。输入问题获取 AI 回复,可继续追问。对话上下文在会话期间保留。

  1. Type your question in the editor area.
  2. Click the VPL button (bottom-right corner) to send. The button shows "Thinking..." while waiting.
  3. AI reply appears in the editor, formatted as a conversation:
    >>> You: ...    <<< AI: ...
  4. Continue typing below the conversation to ask follow-up questions.
  5. Click Ln1 Col1 Java (bottom status bar) to clear the editor input area (chat history is preserved in memory).
  1. 在编辑器区域输入你的问题。
  2. 点击右下角的 VPL 按钮发送,按钮会显示 "Thinking..."
  3. AI 回复出现在编辑器中,格式为对话形式:
    >>> You: ...    <<< AI: ...
  4. 在对话下方继续输入即可追问。
  5. 点击底部状态栏的 Ln1 Col1 Java 清空编辑器输入区域(对话历史仍然保留在内存中)。
Chat history is kept in memory during the session. Refreshing the page will reset the conversation.
对话历史仅保存在当前会话中,刷新页面将重置对话。

Editable Elements

可编辑元素

Username (top-right)
The name displayed in the top-right corner is freely editable. Click it and type any name you want.
用户名(右上角)
右上角显示的用户名可以自由编辑,直接点击后输入任意名称即可。
Breadcrumb Topic
In the breadcrumb path Dashboard / My courses / TTTK2173 ... / Topic 2 (A) : ..., the last item (topic name) is editable. Modifying it will also update the main page title below in sync.
导航栏题目
在顶部导航路径 Dashboard / My courses / TTTK2173 ... / Topic 2 (A) : ... 中,最后一项(题目名称)可以编辑。修改后页面下方的大标题会同步更新。

Backend & Model

后端与模型

ItemDetail
项目详情
AI Model AI 模型 ChatGPT-5.4
API Backend openai.com/index/openai-api/
Code Endpoint 代码端点 /solve{ question, language }{ code }
Chat Endpoint 对话端点 /chat{ messages[] }{ reply }
Editor 编辑器 Moodle VPL 4.4.2 + Ace Editor
Course 课程 TTTK2173 Struktur Data dan Algoritma

Common Issues

常见问题

ProblemSolution
问题解决方法
Clipboard Solve says "Cannot read clipboard" Clipboard Solve 提示 "Cannot read clipboard" Allow clipboard permission in browser settings when prompted 在浏览器弹出提示时允许剪贴板权限
"Request failed" error "Request failed" 错误 Check your network connection; the backend server may be temporarily unavailable 检查网络连接;后端服务器可能暂时不可用
Wrong language detected 检测到错误的编程语言 Check the file tab name — the language is auto-detected from the file extension 检查文件标签名 — 语言根据文件扩展名自动检测
Chat history lost 对话历史丢失 History is session-only; refreshing the page clears it 历史仅保存在当前会话中,刷新页面会清除