# iput2023-kohei/mastering-chinese-classics architecture

> Architecture diagram of the GitHub repository iput2023-kohei/mastering-chinese-classics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iput2023-kohei/mastering-chinese-classics
- Repository: https://github.com/iput2023-kohei/mastering-chinese-classics

## Overview

返り点マスターは、難易度別の問題に答えて返り点の読み順を学ぶブラウザー学習アプリです。利用者が開始・難易度を選ぶと、アプリが問題を表示し、並べ替えた回答を判定して不正解時の解説や最終結果を示します。問題データは難易度別に js/q_pattern.js に定義されています。READMEはヒント設定と学習成果の可視化も挙げています。主な実装の関係は抜粋に基づき、未確認のHTML配線やウィジェット初期化は示していません。

Main entry points: [`js/main.js`](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js) (回答判定), [`js/q_pattern.js`](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/q_pattern.js) (難易度別問題), [`js/jquery-ui.mini.js`](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/jquery-ui.mini.js) (jQuery UI操作)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_practice["学習フロー"]
  node_game["ゲーム制御<br/>[main.js]"]
  node_question["問題表示<br/>[main.js]"]
  node_answer["回答判定<br/>[main.js]"]
  node_explanation["解説・ヒント<br/>[main.js]"]
  node_results["結果表示<br/>[main.js]"]
end

subgraph group_content["問題コンテンツ"]
  node_questiondata["難易度別問題<br/>[q_pattern.js]"]
end

subgraph group_interaction["操作ライブラリ"]
  node_jqueryui["jQuery UI操作<br/>[jquery-ui.mini.js]"]
end

node_learner(("学習者"))

node_learner -->|"starts/selects"| node_game
node_game -->|"starts question"| node_question
node_game -->|"selects by difficulty"| node_questiondata
node_question -->|"submits response"| node_answer
node_answer -->|"shows on error"| node_explanation
node_learner -->|"reorders/submits"| node_answer
node_answer -->|"records outcomes"| node_results
node_learner -->|"requests hint"| node_explanation
node_question -.->|"sortable interaction"| node_jqueryui

click node_game "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js"
click node_question "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js"
click node_answer "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js"
click node_explanation "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js"
click node_results "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js"
click node_questiondata "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/q_pattern.js"
click node_jqueryui "https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/jquery-ui.mini.js"

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_game,node_question,node_answer,node_explanation,node_results toneBlue
class node_questiondata toneAmber
class node_jqueryui toneMint
class node_learner toneIndigo
```

## Components

### 学習フロー

- [ゲーム制御](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js): `js/main.js`
- [問題表示](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js): `js/main.js`
- [回答判定](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js): `js/main.js`
- [解説・ヒント](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js): `js/main.js`
- [結果表示](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/main.js): `js/main.js`

### 問題コンテンツ

- [難易度別問題](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/q_pattern.js): `js/q_pattern.js`

### 操作ライブラリ

- [jQuery UI操作](https://github.com/iput2023-kohei/mastering-chinese-classics/blob/main/js/jquery-ui.mini.js): `js/jquery-ui.mini.js`

### Other components

- **学習者**

## Connections

- 学習者 → ゲーム制御: starts/selects (evidence: `README.md`)
- ゲーム制御 → 問題表示: starts question (evidence: `js/main.js`)
- ゲーム制御 → 難易度別問題: selects by difficulty (evidence: `js/main.js`)
- 問題表示 → 回答判定: submits response (evidence: `js/main.js`)
- 回答判定 → 解説・ヒント: shows on error (evidence: `js/main.js`)
- 学習者 → 回答判定: reorders/submits (evidence: `README.md`)
- 回答判定 → 結果表示: records outcomes (evidence: `js/main.js`)
- 学習者 → 解説・ヒント: requests hint (evidence: `js/main.js`)
- 問題表示 → jQuery UI操作: sortable interaction
