Commit graph

10 commits

Author SHA1 Message Date
Gonçalo S. Martins
2c0ce4c9e1 Code cleanup. Remove unnecessary test case. 2016-05-17 23:12:04 +01:00
Gonçalo S. Martins
19871df191 Add a first version of the is_valid function.
Our sollution now fully runs, but some words are still too close
to others.
2016-05-17 23:09:39 +01:00
Gonçalo S. Martins
82be7a7fec The generate_grid function now looks close to a working version. 2016-05-17 22:55:29 +01:00
Gonçalo S. Martins
45167adfba Update the print function, fill in add_word_to_grid function. 2016-05-17 22:40:16 +01:00
Gonçalo S. Martins
f472943d05 Add a function to generate all possibilities from the grid dimensions and the word list. 2016-05-17 22:04:24 +01:00
Gonçalo S. Martins
7cc9205fbf Fix a potential infinite loop.
If the word file has fewer words than the number we're looking for,
we use'em all.
2016-05-17 21:46:07 +01:00
Gonçalo S. Martins
3747c8a98c The word reading function now reads a certain number of words. 2016-05-17 21:42:41 +01:00
Gonçalo S. Martins
7af77e6636 Add stubs of auxiliary functions. 2016-05-17 21:27:08 +01:00
Gonçalo S. Martins
84d602a822 Fill in the grid printing function.
All it's missing is the compile step.
2016-05-17 21:22:07 +01:00
Gonçalo S. Martins
ee26903b33 First commit: add a first stub of the code. 2016-05-17 20:54:03 +01:00