Hello everyone, so I am working on a word puzzle generator. I have the bulk of it completed-but I am confused on how to proceed from one part. The puzzle must be a user defined size, but the words must then be outputted to a grid in either diaganol, up and down, or left and right (randomly of course), and then the rest of the grid has to be filled with random characters. I am not exactly sure how to output my words in up/down/diagonal format, and then fill the rest of the grid with random characters. I created a random character script, but I don't know how to go from here
void randomChar (char names[MAX][LEN], int num)
{
int i = 0;
int j = 0;
char arr[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for ( i = 0; i < num; i++)
{
j = rand() %20;
while (j >= 0)
{
names[i][j] = arr[rand() % 36];
j--;
}
}
}
Any help would be greatly appreciated.