mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-10 02:19:46 +08:00
refactor: 重构项目为纯GUI版本并清理冗余代码
- 移除控制台版本相关代码,包括game_mode、ui、init_board等模块 - 将empty_board函数移至gobang.c核心模块 - 简化main.c仅保留GUI启动逻辑 - 更新Makefile仅构建GUI版本 - 清理过时文档和配置文件 - 优化GUI菜单和游戏窗口交互逻辑 - 添加AI难度配置支持
This commit is contained in:
@@ -20,6 +20,11 @@
|
||||
// 函数原型
|
||||
|
||||
// --- 游戏核心逻辑 ---
|
||||
/**
|
||||
* @brief 初始化棋盘,将所有位置设置为空(EMPTY)
|
||||
*/
|
||||
void empty_board();
|
||||
|
||||
/**
|
||||
* @brief 检查指定坐标是否为有效落子点(在棋盘内且为空)
|
||||
* @param x 待检查的行坐标 (0-based)
|
||||
|
||||
Reference in New Issue
Block a user