Add files via upload

This commit is contained in:
2025-06-30 22:27:15 +08:00
committed by GitHub
parent cf8cfceefe
commit 6e8b61a958
7 changed files with 670 additions and 663 deletions
+25 -25
View File
@@ -1,16 +1,16 @@
/**
* @file game_mode.h
* @author 刘航宇(3364451258@qq.com15236416560@163.comlhy3364451258@outlook.com)
* @brief 五子棋游戏框架头文件
* @author ??????(3364451258@qq.com??15236416560@163.com??lhy3364451258@outlook.com)
* @brief ????????????????
* @version 3.0
* @date 2025-06-30
*
* @copyright Copyright (c) 2025
*
* @note 本文件定义了五子棋游戏的三种主要模式:
* 1. AI对战模式
* 2. 双人对战模式
* 3. 复盘模式
* @note ?????????????????????????????????
* 1. AI?????
* 2. ???????
* 3. ??????
*/
#ifndef GAME_MODE_H
@@ -18,53 +18,53 @@
#include "gobang.h"
// 特殊输入命令
// ????????????
#define INPUT_UNDO -1
#define INPUT_SAVE -2
#define INPUT_EXIT -3
/**
* @brief 从用户获取整数输入
* @brief ????????????????
*
* @param prompt 提示信息
* @param min 最小值
* @param max 最大值
* @return int 输入的整数
* @param prompt ??????
* @param min ?????
* @param max ????
* @return int ?????????
*/
int get_integer_input(const char *prompt, int min, int max);
/**
* @brief 处理玩家回合
* @brief ?????????
*
* @param x 玩家输入的横坐标
* @param y 玩家输入的纵坐标
* @return true 输入有效
* @return false 输入无效
* @param x ?????????????
* @param y ??????????????
* @return true ????????
* @return false ????????
*/
bool parse_player_input(int *x, int *y);
/**
* @brief 处理AI回合
* @brief ????AI???
*
* @param current_player 当前玩家
* @param current_player ??????
*/
bool handle_player_turn(int current_player);
/**
* @brief AI对战模式
* 实现玩家与AI的对战逻辑
* @brief AI?????
* ????????AI???????
*/
void run_ai_game();
/**
* @brief 双人对战模式
* 实现两个玩家之间的对战逻辑
* @brief ???????
* ???????????????????
*/
void run_pvp_game();
/**
* @brief 复盘模式
* 加载并重现历史对局
* @brief ??????
* ???????????????
*/
void run_review_mode();