|
@ -122,6 +122,7 @@ int main() |
|
|
while (1) |
|
|
while (1) |
|
|
{ |
|
|
{ |
|
|
system("clear"); |
|
|
system("clear"); |
|
|
|
|
|
Generatefield(); |
|
|
|
|
|
|
|
|
for (int i = 0; i < 23; i++) |
|
|
for (int i = 0; i < 23; i++) |
|
|
{ |
|
|
{ |
|
@ -136,19 +137,6 @@ int main() |
|
|
|
|
|
|
|
|
buildBin(10,10); |
|
|
buildBin(10,10); |
|
|
|
|
|
|
|
|
for (int i = 0; i < 29; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
printf("|"); |
|
|
|
|
|
for (int j = 0; j < 23; j++) |
|
|
|
|
|
{ |
|
|
|
|
|
if (i == 0 || i == 29 - 1 || i == 2) |
|
|
|
|
|
printf("="); |
|
|
|
|
|
else |
|
|
|
|
|
printf("%c", field[j][i]); |
|
|
|
|
|
} |
|
|
|
|
|
printf("|"); |
|
|
|
|
|
printf("\n"); |
|
|
|
|
|
} |
|
|
|
|
|
getStartPosition(); |
|
|
getStartPosition(); |
|
|
|
|
|
|
|
|
sleep(1); |
|
|
sleep(1); |
|
|