mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-06-29 00:45:55 +08:00
feat(core): 棋盘引擎 — 不可变 Board, 落子/胜负/悔棋/候选位
实现不可变风格的 Board 结构体,place()/undo() 返回新 Board。 包含 bounds 检查、四方向五连胜负判定、悔棋历史管理、 空棋盘天元候选等功能。新增 11 个单元测试全部通过。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Gobang core library — 纯游戏逻辑,零 GUI 依赖
|
||||
|
||||
pub mod board;
|
||||
pub mod types;
|
||||
|
||||
Reference in New Issue
Block a user