I stop for a loooong time,
The function updates the board after placing a token at a board position. The parameter board is a 2D array, each element contains an integral value representing the status of the boardCode:int updateBoard(char board[8][8], int player, int xpos, int ypos);
position. The board position is empty if the value is 0, the board position is occupied by a token
displaying white if the value is 1, and the token is displaying black if the value is 2. The
parameter player can have value 1 representing that the white player is making this move, or 2
representing that the black player is making this move. The parameters xpos and ypos
represent the positions where the player's token is placed. The top-left position (xpos, ypos) is
(0, 0).
The function should return the number of tokens flipped by the move, or it returns ¡V1 if the
move is an invalid move. A move is invalid if no token is flipped by this move.
Anyone can give me some hints on how to do..? thk a lot