|
@ -79,7 +79,7 @@ void makeMove() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int main() { |
|
|
|
|
|
|
|
|
void playGame() { |
|
|
while (1) { |
|
|
while (1) { |
|
|
displayBoard(); |
|
|
displayBoard(); |
|
|
makeMove(); |
|
|
makeMove(); |
|
@ -95,11 +95,10 @@ int main() { |
|
|
displayBoard(); |
|
|
displayBoard(); |
|
|
printf("Unentschieden!\n"); |
|
|
printf("Unentschieden!\n"); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Wechsle den Spieler |
|
|
|
|
|
currentPlayer = (currentPlayer == 'X') ? 'O' : 'X'; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
int main(){ |
|
|
|
|
|
playGame(); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |