getting there...

This commit is contained in:
foo
2017-01-07 12:42:18 +00:00
parent 2027d6b61e
commit 86463e38bf
6 changed files with 246 additions and 107 deletions

View File

@@ -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