crossword-generator
crossword-generator copied to clipboard
Getting error with a specific set of words
Please check the below screenshot..
Please help, thanks
I have the problem too, give you a resolve,find src/demo.js,line 21-22,add ‘px’ at last。and find line45-46, add ‘px’ too, your problem will reslove
@kivenZhou Thank you, I tried but still did not solve..
@hazem-taha Seems like the question raised in your screenshot could not be solved by these code. In this special case, word KITTEN could not be inserted, so the code ran wrong. After delete the word KITTEN, it works again.
hello @gaoryrt
Yes exactly this is the case, but how to fix this ? as I don't have control on the words the user enters to create the puzzle and this is a bug behavior as far as I understand..
Thanks in advance.
@hazem-taha To ensure that the input has a solution, the code first sorts the input by word's length You can try to replace this part using the user-input order As long as the user ensures that the order of the inputs have a solution, the code will have one too This is the easiest way I can think of