Hacker Challenge: Word Search Solver
Learn to create a word search program that searches for specific words in a grid.
We'll cover the following
- The word search solver
- Task
- Example
- Your implementation
- Implementation walkthrough
- The main() function
- Loading the puzzle-map
- Printing the puzzle-map
- Finding the word occurrence
- Finding a word horizontally (left to right)
- Exercise: Finding a word horizontally (right to left)
- Finding a word vertically (top to bottom)
- Exercise: Finding a word vertically (bottom to top)
- Finding a word diagonally (top-left to down-right)
- Exercise: Finding a word diagonally (down-right to up-left)
- Exercise: Finding a word diagonally (up-right to down left)
- Exercise: Finding a word diagonally (down-left to up-right)
- Printing the direction
- Complete implementation
The word search solver
If you’re an avid newspaper reader or just curious about word games, you must have played the word search game before. Even if you haven’t, there is no need to worry; the animation below gives you a rundown of how the game works:
Get hands-on with 1200+ tech skills courses.