From 9960fa968af7d862a88eacc7b44a3c727ad0e3e8 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Mon, 26 Jul 2021 00:06:45 -0400 Subject: No need to add 1 to the player_number_from_color It already returns 1 for player 1 and 2 for player 2. --- src/game_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_loop.c b/src/game_loop.c index c76f7e6..f71d204 100644 --- a/src/game_loop.c +++ b/src/game_loop.c @@ -86,7 +86,7 @@ static void apply_move(enum player_color board[8][8], // We should have checked for the validity of the move before we got here. fprintf(stderr, "The move %d %d was not valid for player %d\n", move.row, - move.col, player_number_from_color(current_player) + 1); + move.col, player_number_from_color(current_player)); exit(EXIT_FAILURE); } -- cgit v1.2.3