welcome 123
asked on
word search puzzle
I want to write a C# console application for a word search puzzle (similar to scrabble game). There is a file with collection of letters which contains hidden words (puzzle.txt). I need to find all of the words in the word list (words.txt) from puzzle.txt.
These words may the words hidden left to right (LR) ,right to left (RL), up(U), down(D), Diagonal up left (DUL), Diagonal up right (DUR), Diagonal down left(DUL) or Diagonal down right (DDR).
The output should include name of the word found, where it was found and the direction like (up or down, etc)
puzzle.txt
COOSGNDLOODINTIOIS
LNGMAKCEANDOROSRUC
IAEASPTLTAIPONRND
CNFIREWALLWREIKOOC
KFDPRDHTOOTHULBASH
words.txt
Bash
cookie
Tooth
Click
Firewall
Any suggestions on how to approach this in C# or provide pseudocode?
Thanks in Advance.
These words may the words hidden left to right (LR) ,right to left (RL), up(U), down(D), Diagonal up left (DUL), Diagonal up right (DUR), Diagonal down left(DUL) or Diagonal down right (DDR).
The output should include name of the word found, where it was found and the direction like (up or down, etc)
puzzle.txt
COOSGNDLOODINTIOIS
LNGMAKCEANDOROSRUC
IAEASPTLTAIPONRND
CNFIREWALLWREIKOOC
KFDPRDHTOOTHULBASH
words.txt
Bash
cookie
Tooth
Click
Firewall
Any suggestions on how to approach this in C# or provide pseudocode?
Thanks in Advance.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.