i have a 6x6 array . a certain object randomly moves within the boxes , i need to count the steps he makes for him to able to step all the boxes , i dont know what to do nxt with my code . the dot represents the boxes :
# include <stdio.h>
#include <stdlib.h>
#include <conio.h>
# include <time.h>
time_t seed;
main()
{
clrscr();
seed = time(NULL);
srand(seed);
char box[6][6];
char objct= '*';
int a,b,c;
for (a=0; a<6; a++) {
for (b=0; b<6; b++) {
box[a][b]='.';
box[4][3]='*';
printf("%c", box[a][b]);
}
printf("\n");
}
getch();
}