A classic Chinese Chess game implemented in TypeScript, running completely in the browser.
- Pure Client-Side: Runs entirely in your web browser with no server-side dependencies for gameplay.
- Game Modes:
- Player vs Player (PvP): Play against a friend on the same device.
- Player vs Computer (PvE): Challenge the AI.
- AI Difficulty Levels:
- Easy (初級)
- Medium (中級)
- Hard (高級)
- Game Rules: Implements standard Chinese Chess rules including perpetual check/chase detection.
- Responsive Design: Clean interface with traditional board aesthetics.
- Node.js (v14 or higher recommended)
- npm (Node Package Manager)
- Go to 中國象棋.
To start the local development server:
npm run devOpen your browser and navigate to the URL shown in the terminal (usually http://localhost:5173).
To build the application for production:
npm run buildThe built files will be in the dist directory. You can preview the production build locally using:
npm run preview- TypeScript: For type-safe logic.
- Vite: Next Generation Frontend Tooling.
- HTML/CSS: For structure and styling.
MIT