Commit Graph

16 Commits

Author SHA1 Message Date
Serendipity dddfd035c6 feat: 接入 LLM AI 引擎到 GUI,GameConfig 支持 useLlm 切换 AI 类型
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 13:46:45 +08:00
Serendipity c1c64b0155 perf: AI 搜索移到独立后台线程避免阻塞 GUI
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 13:43:25 +08:00
Serendipity 955396a74d feat: 添加 env_logger 基础日志系统
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 13:41:06 +08:00
Serendipity ec4aae37d9 fix: 棋谱日期从 Unix 时间戳改为 ISO 8601 可读格式 2026-05-31 13:40:28 +08:00
Serendipity cd9c3a79ab fix: 修复悔棋奇数步崩溃及空历史错误语义 (NoHistory)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 13:38:04 +08:00
Serendipity 834d61f896 fix: 移除 GameMode 的 camelCase 重命名,修复前端传 Local/VsAi 无法匹配
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 13:09:11 +08:00
Serendipity ffcc7a7675 fix: 代码审查修复 — serde camelCase/CSP/TS检查/replay/undo/AI禁手/星位/未使用依赖
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 12:51:53 +08:00
Serendipity 820f35f444 feat(core): LLM AI — OpenAI 兼容 API 调用 + prompt/parse
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:09:44 +08:00
Serendipity 6a78631ad4 feat(core): 网络模块 — GameMessage 协议定义 + NetworkSession
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:05:58 +08:00
Serendipity 4dc837a29a feat(core): 棋谱记录 — JSON 序列化/反序列化 + 复盘重建
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:04:42 +08:00
Serendipity 556ee39a28 feat(core): AI Alpha-Beta 搜索 — Negamax + 剪枝 + 启发式排序
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:03:38 +08:00
Serendipity 5230adacde feat(core): AI 棋形评分模块 — 连五/活四/冲四/活三等棋形打分
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:00:48 +08:00
Serendipity 963fc78007 feat(core): 禁手规则 — 长连/双三/双四检测
实现黑棋禁手检测(is_forbidden),包含:
- 长连禁手(超过5子连珠)
- 双三禁手(同时形成两个活三)
- 双四禁手(同时形成两个活四)
- 白棋不受禁手规则限制

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 23:59:19 +08:00
Serendipity 4e336308ab feat(core): 棋盘引擎 — 不可变 Board, 落子/胜负/悔棋/候选位
实现不可变风格的 Board 结构体,place()/undo() 返回新 Board。
包含 bounds 检查、四方向五连胜负判定、悔棋历史管理、
空棋盘天元候选等功能。新增 11 个单元测试全部通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 23:55:21 +08:00
Serendipity fd307addc8 feat(core): 定义基础类型 — Position, Color, CellState, Move, GameConfig
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 23:51:00 +08:00
Serendipity 1e0d5f0c43 feat: 初始化 Cargo workspace + core crate 脚手架
创建 Rust 工作区,包含 core(纯游戏逻辑)和 gui(Tauri 占位)两个 crate。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 23:49:50 +08:00