Add files via upload

This commit is contained in:
2025-07-10 18:32:57 +08:00
committed by GitHub
parent 377a047d42
commit 798d77259c
13 changed files with 451 additions and 136 deletions
+9 -6
View File
@@ -1,12 +1,6 @@
/**
* @file game_mode.h
* @author 刘航宇(3364451258@qq.com、15236416560@163.com、lhy3364451258@outlook.com)
* @brief 五子棋游戏框架头文件
* @version 4.0
* @date 2025-07-02
*
* @copyright Copyright (c) 2025
*
* @note 本文件定义了五子棋游戏的四种主要模式:
* 1. AI对战模式
* 2. 双人对战模式
@@ -40,6 +34,15 @@ int get_integer_input(const char *prompt, int min, int max);
*/
bool parse_player_input(int *x, int *y);
/**
* @brief 解析网络对战模式下的玩家输入
* @param x 行坐标指针
* @param y 列坐标指针
* @return true 有效坐标输入
* @return false 特殊命令或无效输入
*/
bool parse_network_player_input(int *x, int *y);
/**
* @brief 处理AI回合
*