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:
@@ -81,4 +81,16 @@ void start_pve_game_gui();
|
||||
*/
|
||||
void start_replay_gui();
|
||||
|
||||
/**
|
||||
* @brief 启动图形化界面模式
|
||||
* @note 替代原来的 main 函数中的 GUI 分支逻辑
|
||||
*/
|
||||
int init_gui(); // Already declared
|
||||
|
||||
/**
|
||||
* @brief 运行图形化界面模式
|
||||
* @details 主循环处理事件、渲染画面和更新状态
|
||||
*/
|
||||
void run_gui_mode();
|
||||
|
||||
#endif // GUI_H
|
||||
Reference in New Issue
Block a user