https://github.com/junaidsalim/word_searcher
A 3-digit word search program in a 2D array, developed by Junaid Saleem in C++, that finds and displays words appearing horizontally, vertically, diagonally, and backwards, along with their starting and ending positions.
https://github.com/junaidsalim/word_searcher
cpp word-search
Last synced: over 1 year ago
JSON representation
A 3-digit word search program in a 2D array, developed by Junaid Saleem in C++, that finds and displays words appearing horizontally, vertically, diagonally, and backwards, along with their starting and ending positions.
- Host: GitHub
- URL: https://github.com/junaidsalim/word_searcher
- Owner: JunaidSalim
- Created: 2023-06-28T12:10:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T16:30:50.000Z (over 2 years ago)
- Last Synced: 2025-02-11T13:52:25.716Z (over 1 year ago)
- Topics: cpp, word-search
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Word-Searcher
A 3-digit word search program in a 2D array, developed in C++, finds and displays words appearing horizontally, vertically, diagonally, and backward, along with their starting and ending positions.
The program takes a 2D array of characters as input and searches for all possible words within the array. It searches not only horizontally and vertically but also in backward, vertical backward, diagonal, and diagonal backward directions.
For example, given the following input:
dogxbxxxnoon
rhellotherex
okciuqbrownm
wxwgexlxhjij
oozokvuxdrow
rlxdrxextxja
drowblonkgod
The extracted words will be displayed on the screen along with their starting and ending positions. For example, if the word "god" is found, the output should be:
god (7,10) (7,12)