! git clone https://github.com/Magoninho/word-search-puzzle-generator.git
fatal: destination path 'word-search-puzzle-generator' already exists and is not an empty directory.
NOTE: two small changes need to be made in main.py to make this code work.
Comment this line out:
# words = ["wear", "variable", "print", "minimum", "graduate", "room", "bulk", "advise", "completed", "memory"]
And change this line...
lines = file1.readlines()
into:
words = [word.strip() for word in file1.readlines()]
Now it should work!
! python3 word-search-puzzle-generator/src/main.py -h
usage: main.py [-h] [-c] [-f FILE] [-s SIZE] Generates a word search puzzle optional arguments: -h, --help show this help message and exit -c, --cheated Hightlight words -f FILE, --file FILE Path to a custom words file. One word per line. -s SIZE, --size SIZE Sets a custom grid size (Default: 20)
! python3 word-search-puzzle-generator/src/main.py --file word-search.txt -s 20 -c
┌────────────────────┐ │ Word Search Puzzle │ └────────────────────┘ ┌─────────────────────────────────────────┐ │ b r s y v y n v i v j t n j k b t n f n │ │ q v p d e c e e i d x h w t j g d p q r │ │ b s i o x v w a k c l z z k y e z q z d │ │ k b q l o q s e i g i o u t c o d r v p │ │ t d a j o x u o a y z h r r d x g c d u │ │ e k e s l q g t a s q z s r x g g r t j │ │ y g o o g e w r l z k n k j w g z e q m │ │ j p t q t h z n l w v j w w o r l d h v │ │ h l h i w q x z u f k q r v p h e l l o │ │ k a e j g g y a e q x g r a s w m j o v │ │ x y r l v m e w h a t p g s n h q j e f │ │ i w x d z l e q i f t v q p e m w m o u │ │ d f q q f c i l c a n k u n d t h s a c │ │ t t n p g j z p i i z h k g p l z g n o │ │ r y b n i y x h s r x m x y d m z w d u │ │ x e x s d t l l b f i m t f t o b w q x │ │ o f x d o d w o s w l d r o e n e a l w │ │ k x i r r h z t a i d w i l y p g o m v │ │ d k r l v q q t c t z v l n e c b t s k │ │ d k p c u z i u d h p e i b f w o r d s │ └─────────────────────────────────────────┘ Words: 1. hello | 2. world | 3. and | 4. what | 5. other | 6. words | 7. can | 8. i | 9. play | 10. with |