Formated all files
This commit is contained in:
@ -12,9 +12,10 @@ extern int columns; // The count of columns of the game map
|
||||
/**
|
||||
* @brief The definition of function Execute(int, int)
|
||||
*
|
||||
* @details This function is designed to take a step when player the client's (or player's) role, and the implementation
|
||||
* of it has been finished by TA. (I hope my comments in code would be easy to understand T_T) If you do not understand
|
||||
* the contents, please ask TA for help immediately!!!
|
||||
* @details This function is designed to take a step when player the client's
|
||||
* (or player's) role, and the implementation of it has been finished by TA. (I
|
||||
* hope my comments in code would be easy to understand T_T) If you do not
|
||||
* understand the contents, please ask TA for help immediately!!!
|
||||
*
|
||||
* @param row The row coordinate (0-based) of the block to be visited.
|
||||
* @param column The column coordinate (0-based) of the block to be visited.
|
||||
@ -24,8 +25,9 @@ void Execute(int row, int column);
|
||||
/**
|
||||
* @brief The definition of function InitGame()
|
||||
*
|
||||
* @details This function is designed to initialize the game. It should be called at the beginning of the game, which
|
||||
* will read the scale of the game map and the first step taken by the server (see README).
|
||||
* @details This function is designed to initialize the game. It should be
|
||||
* called at the beginning of the game, which will read the scale of the game
|
||||
* map and the first step taken by the server (see README).
|
||||
*/
|
||||
void InitGame() {
|
||||
int first_row, first_column;
|
||||
@ -36,9 +38,10 @@ void InitGame() {
|
||||
/**
|
||||
* @brief The definition of function ReadMap()
|
||||
*
|
||||
* @details This function is designed to read the game map from stdin when playing the client's (or player's) role.
|
||||
* Since the client (or player) can only get the limited information of the game map, so if there is a 3 * 3 map as
|
||||
* above and only the block (2, 0) has been visited, the stdin would be
|
||||
* @details This function is designed to read the game map from stdin when
|
||||
* playing the client's (or player's) role. Since the client (or player) can
|
||||
* only get the limited information of the game map, so if there is a 3 * 3 map
|
||||
* as above and only the block (2, 0) has been visited, the stdin would be
|
||||
* ???
|
||||
* 12?
|
||||
* 01?
|
||||
@ -50,8 +53,8 @@ void ReadMap() {
|
||||
/**
|
||||
* @brief The definition of function Decide()
|
||||
*
|
||||
* @details This function is designed to decide the next step when playing the client's (or player's) role. Open up your
|
||||
* mind and make your decision here!
|
||||
* @details This function is designed to decide the next step when playing the
|
||||
* client's (or player's) role. Open up your mind and make your decision here!
|
||||
*/
|
||||
void Decide() {
|
||||
// TODO (student): Implement me!
|
||||
|
Reference in New Issue
Block a user