June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,10 +1,14 @@
|
|||
["BO","XK","DQ","CP","NA","GT","RE","TG","QD","FS","JW","HU","VI","AN","OB","ER","FS","LY","PC","ZM"] const: ABCBlocks
|
||||
import: mapping
|
||||
|
||||
["BO","XK","DQ","CP","NA","GT","RE","TG","QD","FS","JW","HU","VI","AN","OB","ER","FS","LY","PC","ZM"]
|
||||
const: ABCBlocks
|
||||
|
||||
: canMakeWord(w, blocks)
|
||||
| i |
|
||||
w isEmpty ifTrue: [ true return ]
|
||||
w empty? ifTrue: [ true return ]
|
||||
blocks size loop: i [
|
||||
blocks at(i) include(w first toUpper) ifFalse: [ continue ]
|
||||
canMakeWord(w right(w size 1 -), blocks del(i, i)) ifTrue: [ true return ]
|
||||
w first >upper blocks at(i) include? ifFalse: [ continue ]
|
||||
canMakeWord( w right( w size 1- ), blocks del(i, i) ) ifTrue: [ true return ]
|
||||
]
|
||||
false ;
|
||||
false
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue