diff --git a/src/TicTacToe.c b/src/TicTacToe.c index 33fcb08..6c4f741 100644 --- a/src/TicTacToe.c +++ b/src/TicTacToe.c @@ -97,6 +97,14 @@ int main() { printf("\nSpieler O hat gewonnen!\n\n"); break; } + } else if (pos3 == player && pos6 == player && pos9 == player) { + if(player == 10){ + printf("\nSpieler X hat gewonnen!\n\n"); + break; + }else{ + printf("\nSpieler O hat gewonnen!\n\n"); + break; + } } player = switchPlayer(player);