From 4d2a421e44f2f6e8236b605607884591d453543c Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 18:28:41 +0100 Subject: [PATCH] refactoring: Zuege -> makeMove --- src/main/c/TicTacToe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index 422b99b..01f704b 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -80,7 +80,7 @@ int Winner(char board[3][3]) { printf("Es ist ein Unendschieden\n"); return 0; } -void Zuege(char board[3][3], int row, int col) { +void makeMove(char board[3][3], int row, int col) { if (Runde < 10) { if (Runde % 2 == 0) { if (board[row][col] == '_') { @@ -94,7 +94,7 @@ void Zuege(char board[3][3], int row, int col) { scanf("%d", &col); row -= 1; col -= 1; - Zuege(board, row, col); + makeMove(board, row, col); } } else { @@ -109,7 +109,7 @@ void Zuege(char board[3][3], int row, int col) { scanf("%d", &col); row -= 1; col -= 1; - Zuege(board, row, col); + makeMove(board, row, col); } } } @@ -157,7 +157,7 @@ int mainx() { row -= 1; //Für Index eins kleiner col -= 1; } - Zuege(board, row, col); + makeMove(board, row, col); Runde++; } displayBoard(board);