@ -339,6 +339,29 @@ int* coorgenerator() {
}
//(3)-er 1
ranco = rand() % 4;
co = randomcoor[ranco];
ranvers = rand() % 5;
randirect = rand() % 4;
if (randirect == 0) {
co = co + ranvers;
if (randirect == 1) {
co = co - ranvers;
if (randirect == 2) {
co = co + 10 * ranvers;
if (randirect == 3) {
co = co - 10 * ranvers;
return returnarr;