Skip to content

Commit

Permalink
feat: use stepfun api to identify unknown pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
iFwu committed Nov 29, 2024
1 parent dc4af96 commit ccce8f9
Show file tree
Hide file tree
Showing 20 changed files with 1,813 additions and 74 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Cloudflare Worker

on:
push:
branches:
- main
paths:
- 'workers/**'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: workers

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Dependencies
run: npm install -g wrangler

- name: Deploy Worker
run: wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
STEP_API_KEY: ${{ secrets.STEP_API_KEY }}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
### 2024-11-29

- 使用大模型 StepFun 分析未识别的棋子
- 删除关闭行棋提示的提醒

### 2024-11-11

- 增加示例部分

### 2024-11-01

- 优化 OpenCV.js 加载完成的判断条件
- 优化全局样式,使用 scoped 样式

### 2024-10-15

- 使用 Vue 3 重构
- 改用 `pinia` 管理状态
- 优化代码结构

### 2024-10-08

- 增加 更新日志 显示
- 棋盘显示优化
- 棋子字体使用隶书
- 提升高清屏渲染质量
- 支持棋子任意移动,黑方可不走最佳走法

### 2024-10-07

- 优化 **OpenCV.js** 库加载、使用 `cdn.jsdmirror.com` 替换 `jsdelivr.net`
- **Pikafish** 使用 `xiangqiai.com` 的 wasm 版本
- 优化黑棋子识别
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@
"vue": "^3.5.13"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20241127.0",
"@vitejs/plugin-vue": "^5.1.4",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"vite": "^6.0.1",
"vite-plugin-cdn2": "^1.1.0",
"vite-plugin-markdown": "^2.2.0"
"vite-plugin-markdown": "^2.2.0",
"wrangler": "^3.91.0"
},
"packageManager": "[email protected]",
"homepage": "https://ifwu.github.io/xiangqi-analysis/",
Expand Down
Loading

0 comments on commit ccce8f9

Please sign in to comment.