|
1 | | -# chess dragon |
| 1 | +# 象棋龙 ChessDragon |
2 | 2 |
|
3 | | -This template should help get you started developing with Vue 3 in Vite. |
| 3 | +<p align="center"> |
| 4 | + <img src="logo.png" alt="ChessDragon Logo" width="200"/> |
| 5 | +</p> |
4 | 6 |
|
5 | | -## Recommended IDE Setup |
| 7 | +一个纯前端实现的像素风格国际象棋小游戏,使用 Vue 3 打造。棋子是我自己画的像素风拟龙原创角色(OC)。 |
6 | 8 |
|
7 | | -[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). |
| 9 | +(虽然画技还得修炼XD) |
8 | 10 |
|
9 | | -## Recommended Browser Setup |
| 11 | +界面布局模仿了 Chess.com / Lichess 的对局体验,底层**从零实现了一套完整的国际象棋引擎**,零外部象棋库依赖。 |
10 | 12 |
|
11 | | -- Chromium-based browsers (Chrome, Edge, Brave, etc.): |
12 | | - - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) |
13 | | - - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) |
14 | | -- Firefox: |
15 | | - - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) |
16 | | - - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) |
| 13 | +--- |
17 | 14 |
|
18 | | -## Type Support for `.vue` Imports in TS |
| 15 | +<p align="center"> |
| 16 | + <img src="screenshot.jpg" alt="Screenshot" width="700"/> |
| 17 | +</p> |
19 | 18 |
|
20 | | -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. |
| 19 | +## 特性 |
21 | 20 |
|
22 | | -## Customize configuration |
| 21 | +- **原创像素棋子** – 每枚棋子都是手绘的像素拟龙角色,自带萌系气场 |
| 22 | +- **完整规则引擎** – 包含王车易位、吃过路兵、升变、逼和、三次重复局面、50 步规则等,严格遵循国际象棋标准 |
| 23 | +- **人机对弈 AI** – 基于 Minimax + Alpha-Beta 剪枝的 AI,具备多级难度,全由自己实现 |
| 24 | +- **舒适布局** – 仿主流象棋平台的界面设计,棋盘、走子提示、着法列表一应俱全 |
| 25 | +<!-- **轻量纯前端** – Vue 3 + Vite,响应式适配 桌面与移动端--> |
| 26 | +- **开箱即玩** – 已部署到 GitHub Pages,浏览器打开就能玩 |
23 | 27 |
|
24 | | -See [Vite Configuration Reference](https://vite.dev/config/). |
| 28 | +## Demo |
| 29 | +[立即体验](https://dorowolf.github.io/chess-dragon) |
25 | 30 |
|
26 | | -## Project Setup |
| 31 | +## 本地运行 |
27 | 32 |
|
28 | | -```sh |
| 33 | +```bash |
| 34 | +git clone https://github.com/<你的用户名>/chess-dragon.git |
| 35 | +cd chess-dragon |
29 | 36 | npm install |
30 | | -``` |
31 | | - |
32 | | -### Compile and Hot-Reload for Development |
33 | | - |
34 | | -```sh |
35 | 37 | npm run dev |
36 | 38 | ``` |
37 | 39 |
|
38 | | -### Type-Check, Compile and Minify for Production |
| 40 | +## 许可与版权 |
39 | 41 |
|
40 | | -```sh |
41 | | -npm run build |
42 | | -``` |
43 | | - |
44 | | -### Lint with [ESLint](https://eslint.org/) |
| 42 | +本项目代码使用 [MIT License](LICENSE) 开源。 |
45 | 43 |
|
46 | | -```sh |
47 | | -npm run lint |
48 | | -``` |
| 44 | +所有美术设计的版权归原作者所有。角色的二次创作无须授权。 |
0 commit comments