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:
@@ -10,12 +10,6 @@
|
||||
#include "gobang.h"
|
||||
|
||||
// --- 复盘与记录功能 ---
|
||||
/**
|
||||
* @brief 进入复盘流程,回顾整局游戏
|
||||
* @param game_mode 游戏模式(1为人机对战,2为双人对战)
|
||||
*/
|
||||
void review_process(int game_mode);
|
||||
|
||||
/**
|
||||
* @brief 将当前对局记录保存到文件
|
||||
* @param filename 要保存到的文件名
|
||||
@@ -24,12 +18,6 @@ void review_process(int game_mode);
|
||||
*/
|
||||
int save_game_to_file(const char *filename, int game_mode);
|
||||
|
||||
/**
|
||||
* @brief 处理保存游戏记录的逻辑
|
||||
* @param game_mode 游戏模式
|
||||
*/
|
||||
void handle_save_record(int game_mode);
|
||||
|
||||
/**
|
||||
* @brief 从文件加载游戏记录
|
||||
* @param filename 要加载的文件名
|
||||
|
||||
Reference in New Issue
Block a user