# gomoku-platform **Repository Path**: luxuan2004/gomoku-platform ## Basic Information - **Project Name**: gomoku-platform - **Description**: 五子棋对战平台:前后端分离双门户,Vue3双前端(对弈客户端+管理端)+SpringBoot3后端;内置启发式AI引擎,JWT+Redis权限体系,战绩MySQL持久化 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-17 - **Last Updated**: 2026-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gomoku-platform #### Description Gomoku battle platform with separated front/back ends: dual Vue 3 portals (game client + admin console) backed by a Spring Boot 3 service. Ships with a heuristic AI engine (pattern evaluation + alpha-beta search, 3 difficulty levels), JWT + Redis session and permission control, and match records persisted in MySQL. The game client and admin console are two independent front-end projects (different ports, deployed separately): the player view contains no admin entry, while the admin console admits only accounts holding `system:*` authorities — any other account is automatically sent back to the client portal. #### Software Architecture Front/back-end separated architecture: dual portals + monolith backend. - Game client `gomoku-web-client/`: Vue 3 + Vite + Element Plus + Pinia + Vue Router 4 (port 5173) — login, play, my match records; the player view contains no admin entry - Admin console `gomoku-web-admin/`: same stack (port 5174) — admin login, user management, all matches - Backend `gomoku-server/`: Spring Boot 3.2 (Spring Security + JWT + Redis token whitelist + MyBatis + MySQL) — auth / dynamic permission menus / match records / user management REST API - Gomoku engine: pure-function ES module `gomoku-web-client/src/game/engine.js` (heuristic evaluation + alpha-beta search, computed locally in the browser) Data model: `sys_user` / `sys_role` / `sys_menu` (types: m directory, c menu, f button) / junction tables / `game_record` (match moves persisted as JSON). #### Installation 1. Requirements: JDK 17+, Node 18+, MySQL 8, Redis (local services or `docker compose up -d`) 2. Clone the repo: `git clone https://gitee.com/luxuan2004/gomoku-platform.git` 3. Database bootstrap (run once as root — creates schema + app account gomoku/gomoku123): `mysql -uroot -p < db/bootstrap.sql` 4. Start the backend: `cd gomoku-server && mvn spring-boot:run` (port 8080) 5. Start the game client: `cd gomoku-web-client && npm install && npm run dev` (http://localhost:5173) 6. Start the admin console: `cd gomoku-web-admin && npm install && npm run dev` (http://localhost:5174/admin.html) 7. Regression tests: `npm test` (21 engine assertions), `node scripts/smoke-e2e.js` (11 backend E2E checks) #### Instructions 1. Built-in accounts: admin/admin123 (admin), user/user123 (player) 2. Player: log into the game client (5173) and play against the AI — three difficulty levels (Beginner/Advanced/Master); match records are saved automatically and listed under "My matches" 3. Admin: log into the admin console (5174) to manage users (create / enable-disable / reset password) and moderate all matches (filter / delete) 4. Tokens last 24 hours; logout revokes them immediately (Redis token whitelist) #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request Dev conventions: conventional commits (feat/fix/docs/chore/refactor/build/test); `main` + `feat/*` branches; `vX.Y` release tags. See《编码规范》for details. #### Gitee Feature 1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)