feat(core): 棋盘引擎 — 不可变 Board, 落子/胜负/悔棋/候选位

实现不可变风格的 Board 结构体,place()/undo() 返回新 Board。
包含 bounds 检查、四方向五连胜负判定、悔棋历史管理、
空棋盘天元候选等功能。新增 11 个单元测试全部通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 23:55:21 +08:00
parent fd307addc8
commit 4e336308ab
3 changed files with 269 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
// Gobang core library — 纯游戏逻辑,零 GUI 依赖
pub mod board;
pub mod types;