|
@ -115,7 +115,7 @@ int multiplayer() { |
|
|
|
|
|
|
|
|
!feld(multi); |
|
|
!feld(multi); |
|
|
|
|
|
|
|
|
int k = 1; |
|
|
|
|
|
|
|
|
int k1 = 1; |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
@ -128,9 +128,27 @@ int multiplayer() { |
|
|
ships1[coor] = 'X'; |
|
|
ships1[coor] = 'X'; |
|
|
!feld(ships1); |
|
|
!feld(ships1); |
|
|
|
|
|
|
|
|
k++; |
|
|
|
|
|
|
|
|
k1++; |
|
|
|
|
|
|
|
|
} while (k < 17); |
|
|
|
|
|
|
|
|
} while (k1 < 17); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int k2 = 1; |
|
|
|
|
|
|
|
|
|
|
|
do |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
printf("Player 2, platziere deine Schiffe.\nKoordinate: "); |
|
|
|
|
|
scanf("%c%d", &letco, &numco); |
|
|
|
|
|
|
|
|
|
|
|
coor = convertcoor(letco, numco); |
|
|
|
|
|
|
|
|
|
|
|
ships1[50] = 'X'; |
|
|
|
|
|
!feld(ships1); |
|
|
|
|
|
|
|
|
|
|
|
k2++; |
|
|
|
|
|
|
|
|
|
|
|
} while (k2 < 17); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|