A basic word search and solution generater.
- Custom Dimensions: Generate grids of any size (e.g. 10x10 or 50x50).
- Batch Word Loading: Import word lists directly from
.txtfiles. - Supports Many Formats: No specific format required for the input file.
- Dual Ouput: Automatically exports two files:
word_search.txt: The playable puzzle filled with random characters.solution.txt: The answer key showing only the hidden words.
- Create and enter teh build directory:
mkdir build && cd build- Configure the project:
cmake ..- Build the executable
cmake --build .Note: The executable wordSearch.exe will be located in the build/ folder (or build/Debug/ on Windows).
./wordSearch.exe <width> <height> <path to words> <output path>./wordSearch.exe 20 20 words.txt ./outputThe program automatically identifies the words in the file which you provide. So no format needed!
B K R B C ...
U S N P X ...
Y C T X Y ...
H A Z Q H ...
O E V E D ...
...
. . . . . ...
. . . . . ...
. . . . . ...
H . . . . ...
O . . . . ...
...
- Ensure the grid is larger than the longest word