Browse Source

refactoring: renamed some vars

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
2c8f8aff68
  1. 6
      src/main/c/Georg/tictactoe.c

6
src/main/c/Georg/tictactoe.c

@ -134,10 +134,10 @@ void printBoard(){
} }
printf("\n"); printf("\n");
for (int i = 0; i < 3; ++i) {
for (int line = 0; line < 3; ++line) {
printf("| "); 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" ); printf( "X" );
else else
printf ( " " ); printf ( " " );

Loading…
Cancel
Save