mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-10 02:19:46 +08:00
v8.2: 完善专业安装包制作功能\n\n- 支持Inno Setup和NSIS双重安装包方案\n- 完整的软件分发体系\n- 一键安装部署和完整卸载功能\n- 更新所有文档以反映v8.2版本特性
This commit is contained in:
+17
-17
@@ -17,28 +17,28 @@ const int direction[4][2] = {{1, 0}, {0, 1}, {1, 1}, {1, -1}}; // 四个方向
|
||||
int step_count = 0; // 当前步数计数器
|
||||
|
||||
// ==================== 游戏配置变量定义 ====================
|
||||
bool use_forbidden_moves = DEFAULT_USE_FORBIDDEN_MOVES; // 是否启用禁手规则
|
||||
int use_timer = DEFAULT_USE_TIMER; // 是否启用计时器
|
||||
int time_limit = DEFAULT_TIME_LIMIT; // 每回合的时间限制(秒)
|
||||
int network_port = DEFAULT_NETWORK_PORT; // 网络端口
|
||||
int network_timeout = NETWORK_TIMEOUT_MS; // 网络超时时间
|
||||
bool use_forbidden_moves = DEFAULT_USE_FORBIDDEN_MOVES; // 是否启用禁手规则
|
||||
int use_timer = DEFAULT_USE_TIMER; // 是否启用计时器
|
||||
int time_limit = DEFAULT_TIME_LIMIT; // 每回合的时间限制(秒)
|
||||
int network_port = DEFAULT_NETWORK_PORT; // 网络端口
|
||||
int network_timeout = NETWORK_TIMEOUT_MS; // 网络超时时间
|
||||
|
||||
// ==================== AI相关变量定义 ====================
|
||||
double defense_coefficient = DEFAULT_DEFENSE_COEFFICIENT; // 防守系数
|
||||
double defense_coefficient = DEFAULT_DEFENSE_COEFFICIENT; // 防守系数
|
||||
|
||||
// ==================== 网络相关变量定义 ====================
|
||||
NetworkGameState network_state = {0}; // 网络游戏状态
|
||||
NetworkGameState network_state = {0}; // 网络游戏状态
|
||||
|
||||
// ==================== GUI相关变量定义 ====================
|
||||
SDL_Window* window = NULL; // SDL窗口指针
|
||||
SDL_Renderer* renderer = NULL; // SDL渲染器指针
|
||||
int gui_running = 1; // GUI运行状态标志
|
||||
int current_player_gui = PLAYER; // GUI当前玩家
|
||||
int game_over = 0; // 游戏结束标志
|
||||
char status_message[256] = "五子棋游戏 - 黑子先行"; // 状态消息
|
||||
SDL_Window *window = NULL; // SDL窗口指针
|
||||
SDL_Renderer *renderer = NULL; // SDL渲染器指针
|
||||
int gui_running = 1; // GUI运行状态标志
|
||||
int current_player_gui = PLAYER; // GUI当前玩家
|
||||
int game_over = 0; // 游戏结束标志
|
||||
char status_message[256] = "五子棋游戏 - 黑子先行"; // 状态消息
|
||||
|
||||
// ==================== 记录相关变量定义 ====================
|
||||
int player1_final_score = 0; // 玩家1最终得分
|
||||
int player2_final_score = 0; // 玩家2最终得分
|
||||
int scores_calculated = 0; // 评分计算标志
|
||||
char winner_info[50] = "平局或未完成"; // 存储胜负信息
|
||||
int player1_final_score = 0; // 玩家1最终得分
|
||||
int player2_final_score = 0; // 玩家2最终得分
|
||||
int scores_calculated = 0; // 评分计算标志
|
||||
char winner_info[50] = "平局或未完成"; // 存储胜负信息
|
||||
Reference in New Issue
Block a user