From ebaf64982df522b5707a51dcddd1622e7cff750e Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Thu, 20 Mar 2025 20:44:56 +0100 Subject: [PATCH] fix documentation for `tictactoe_game_check_streak` --- tictactoe_game.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tictactoe_game.c b/tictactoe_game.c index c0f9811..75b0248 100644 --- a/tictactoe_game.c +++ b/tictactoe_game.c @@ -21,13 +21,14 @@ int tictactoe_game_init(ttt_game_t *game) } /* - * Steps over the board, starting from position (start_x, start_y) and ending + * Steps over the board, starting at position (start_x, start_y) and ending * at the board's boundaries, checking if all cells are occupied by the same * player. * - * start_x and start_y must lie within the board's boundaries. + * start_x and start_y must be within the board's boundaries. * - * Returns the respective player, or '\x00' if a cell isn't occupied. + * Returns the respective player, or '\x00' if no single player occupies all + * cells within the specified streak. */ static char tictactoe_game_check_streak(ttt_game_t *game, size_t start_x, size_t start_y, ssize_t step_x,