@ -659,6 +659,56 @@ int* coorgenerator() {
}
shipcoor[15] = co;
shipdirect = rand() % 2;
if (a == 1) {
if (shipdirect == 0) {
co -= 1;
shipcoor[16] = co;
if (shipdirect == 1) {
co -= 10;
if (a == 2) {
co += 10;
if (a == 3) {
co += 1;
if (a == 4) {
for (int i = 0; i < 17; i++) {
returnarr[i] = shipcoor[i];
return returnarr;