Skip to content

Commit

Permalink
chore: add todo.md and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
iFwu committed Nov 28, 2024
1 parent 0069eb3 commit dc4af96
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 222 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.12.0
version: 9.14.2
run_install: false

- name: Install Node.js
Expand All @@ -39,4 +39,4 @@ jobs:
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
folder: dist
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm test
pnpm lint-staged
35 changes: 35 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 象棋分析工具待办事项

## 棋子识别优化

- [ ] 混合识别方案实现
- [x] 使用 OpenCV 进行基础棋子识别
- [ ] 对于低置信度的识别结果,集成 OCR/视觉大模型 API
- [ ] 添加识别结果反馈(Toast 提示)
- [ ] 优化识别准确率

## 走子模式支持

- [ ] 实现基础走子功能
- [ ] 添加走子规则验证
- [ ] 实现走子有效性判断
- [ ] 支持悔棋功能
- [ ] 多模式支持
- [ ] 支持纯手动走子模式(不启用引擎)
- [ ] 支持引擎辅助提示模式
- [ ] 支持复盘分析模式

## 棋局分享功能

- [ ] 实现棋局分享机制
- [ ] 将当前棋局编码为 FEN 格式
- [ ] 生成包含 FEN 的分享链接
- [ ] 支持通过链接还原棋局
- [ ] 支持查看历史走子记录

## 优化建议

- [x] 添加走子历史记录
- [ ] 优化用户界面,提供更清晰的模式切换
- [ ] 添加复盘时的评估值显示
- [ ] 优化分享链接的展示形式
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
"dependencies": {
"@techstark/opencv-js": "^4.10.0-release.1",
"ml-kmeans": "^6.0.0",
"pinia": "^2.2.4",
"vue": "^3.5.12"
"pinia": "^2.2.7",
"vue": "^3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.4",
"husky": "^9.1.6",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"vite": "^5.4.9",
"vite": "^6.0.1",
"vite-plugin-cdn2": "^1.1.0",
"vite-plugin-markdown": "^2.2.0"
},
"packageManager": "pnpm@9.12.0",
"packageManager": "pnpm@9.14.2",
"homepage": "https://ifwu.github.io/xiangqi-analysis/",
"license": "MIT",
"lint-staged": {
"*.{ts,tsx,js,jsx,json,css,scss,md}": [
"*.{ts,tsx,js,jsx,json,css,scss,md,vue}": [
"prettier --write"
]
}
}
}
Loading

0 comments on commit dc4af96

Please sign in to comment.