要放入垂直方向的单词,需要同时访问所有数组,使用纵横字谜助手代码查找可能匹配的单词。
To put in the vertical words, you need to walk all the arrays simultaneously, using the crossword helper code to look for possible matching words.
让我们使用为纵横字谜助手创建的一些代码,创建从一个单词生成单词链的脚本(参见清单12)。
Let's create a script to generate word chains from a single word, using some of the code we created for the crossword helper (see Listing 12).
给定一个单词,如BIKE,我们可以创建缺少字母的四个单词(. IKE、B.K E、BI . E和BIK .),可以将这些单词传递给纵横字谜助手以查找可能的匹配。
Given a single word, like BIKE, we can create four words with missing letters (.ike, B.KE, BI.E and BIK.) that can be passed through the crossword helper to find possible matches.
应用推荐