Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,14 +1,14 @@
|
|||
var blocks=T("BO", "XK", "DQ", "CP", "NA", "GT", "RE", "TG", "QD", "FS",
|
||||
"JW", "HU", "VI", "AN", "OB", "ER", "FS", "LY", "PC", "ZM", );
|
||||
"JW", "HU", "VI", "AN", "OB", "ER", "FS", "LY", "PC", "ZM", );
|
||||
|
||||
fcn can_make_word(word){
|
||||
fcn(blks,word){
|
||||
if (not word) return(True); // bottom of recursion
|
||||
foreach b in (blks){ n:=__bWalker.idx;
|
||||
if(not b.holds(word[0])) continue; // letter not on this block
|
||||
blks.del(n); // remove this block from pile
|
||||
if (self.fcn(blks,word[1,*])) return(True); // try remaining blocks
|
||||
blks.insert(n,b); // put block back in pile: backtracking
|
||||
if(not b.holds(word[0])) continue; // letter not on this block
|
||||
blks.del(n); // remove this block from pile
|
||||
if (self.fcn(blks,word[1,*])) return(True); // try remaining blocks
|
||||
blks.insert(n,b); // put block back in pile: backtracking
|
||||
}
|
||||
False; // out of blocks but not out of word
|
||||
}(blocks.copy(),word.toUpper())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue