Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(rowStart<myPuzzle.numRows)
- {
- colStart = 0;
- while(colStart+strlen(checkWord)<=myPuzzle.numColumns)
- {
- for(pos=0; pos<strlen(checkWord); pos++)
- {
- if(myPuzzle.entry[rowStart][colStart+pos].letter == checkWord[pos])
- {
- if (pos == (strlen(checkWord) - 1))
- {
- for (i=0; i<strlen(checkWord); i++)
- {
- myPuzzle.entry[rowStart][colStart + i].fg = f_cyan;
- myPuzzle.entry[rowStart][colStart + i].bg = b_black;
- }
- return true;
- }
- }
- else
- pos = strlen(checkWord);
- }
- colStart++;
- }
- rowStart++;
- }
Add Comment
Please, Sign In to add comment