mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-12-16 07:19:05 +00:00
getting there...
This commit is contained in:
21
src/grid.h
21
src/grid.h
@@ -3,16 +3,23 @@
|
||||
|
||||
#define WORDSEARCH_MAXTRIES 500
|
||||
|
||||
char** makegrid (char** words, int height, int width, int simple);
|
||||
char **make_grid(char **words, int height, int width, int simple, int count);
|
||||
|
||||
typedef struct bounds {
|
||||
int min_y;
|
||||
int max_y;
|
||||
int min_x;
|
||||
int max_x;
|
||||
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);
|
||||
bounds *get_bounds(int height, int width, enum direction direction, int length);
|
||||
|
||||
#endif
|
||||
int place_word(char *word, char **grid, int height, int width, int simple);
|
||||
|
||||
char **init_grid(char** old, int height, int width);
|
||||
void free_grid(char** grid, int height);
|
||||
int move_x(int x, enum direction d);
|
||||
int move_y(int y, enum direction d);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user