mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-04-19 23:39:16 +00:00
18 lines
408 B
C
18 lines
408 B
C
|
#ifndef WORDSEARCH_GRID
|
||
|
#define WORDSEARCH_GRID
|
||
|
|
||
|
#define WORDSEARCH_MAXTRIES 500
|
||
|
|
||
|
char** makegrid (char** words, int height, int width, int simple);
|
||
|
|
||
|
typedef struct bounds {
|
||
|
int min_y;
|
||
|
int max_y;
|
||
|
int min_x;
|
||
|
int max_x;
|
||
|
} bounds;
|
||
|
|
||
|
/* returns NULL if cannot fit word; caller needs to free() the response */
|
||
|
bounds* get_bounds(int height, int width, enum direction direction, int length);
|
||
|
|
||
|
#endif
|