From 2c8f8aff685775e0c09cd0aeea0a8deee653ae21 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 12:19:47 +0100 Subject: [PATCH] refactoring: renamed some vars --- src/main/c/Georg/tictactoe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index 3d6d591..0818463 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -134,10 +134,10 @@ void printBoard(){ } printf("\n"); - for (int i = 0; i < 3; ++i) { + for (int line = 0; line < 3; ++line) { printf("| "); - for (int j = 0; j < 3; ++j) { - if( GAME.board[i][j] == true ) + for (int column = 0; column < 3; ++column) { + if( GAME.board[line][column] == true ) printf( "X" ); else printf ( " " );