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 ( " " );