|
@ -396,6 +396,13 @@ int multiplayer() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (score1 = 16) { |
|
|
|
|
|
printf("Player 1 hat gewonnen."); |
|
|
|
|
|
} |
|
|
|
|
|
if (score1 = 16) { |
|
|
|
|
|
printf("Player 1 hat gewonnen."); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -404,7 +411,7 @@ int main() { |
|
|
|
|
|
|
|
|
int player; |
|
|
int player; |
|
|
|
|
|
|
|
|
printf("*Battleship*\n\n Single player: press <1>\n Multiplayer: press <2>\n"); |
|
|
|
|
|
|
|
|
printf("*Schiffeversenken*\n\n Single player: Drück <1>\n Multiplayer: Drück <2>\n"); |
|
|
scanf("%d", &player); |
|
|
scanf("%d", &player); |
|
|
|
|
|
|
|
|
if (player == 1) { |
|
|
if (player == 1) { |
|
|