|
@ -105,6 +105,14 @@ int main() { |
|
|
printf("\nSpieler O hat gewonnen!\n\n"); |
|
|
printf("\nSpieler O hat gewonnen!\n\n"); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (pos1 == player && pos5 == 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); |
|
|
player = switchPlayer(player); |
|
|