trilokgupta / jquery-wordsearch-game

Automatically exported from code.google.com/p/jquery-wordsearch-game
MIT License
0 stars 0 forks source link

Misspelled letter in grid #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some times the list of word don't match word in grid or it is mis-spelled. Pl 
check the attached screenshot.
Red mark line is shown in image. 

That word doesn't match with list. how to get rid of this error??

Thanks

Original issue reported on code.google.com by suraj.bh...@gmail.com on 29 Oct 2013 at 10:37

Attachments:

GoogleCodeExporter commented 8 years ago
I've seen this same issue crop up.  I was able to solve it by changing two 
lines of code.

At 789 and 809, the code reads:
<code>
if (this.cells[i][col].isUnwritten() || chars[i] == this.cells[i][col].value) { 
//CHANGED
</code>
This is incorrect.  The code should read:
<code>
if (this.cells[i][col].isUnwritten() || chars[i] == this.cells[i][col]) { 
//CHANGED
</code>

Just remove that .value and this error will stop happening.

Original comment by alasterd...@gmail.com on 1 Feb 2014 at 10:13