Complete the eight words using each of the 26 letters of the alphabet exactly once.
+---+---+---+---+---+---+---+---+
| ? | A | ? | E | R | I | ? | ? |
+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+
| ? | U | ? | ? | ? | E |
+---+---+---+---+---+---+
+---+---+---+---+---+
| ? | I | ? | ? | E |
+---+---+---+---+---+
+---+---+---+---+---+---+
| ? | ? | L | ? | E | R |
+---+---+---+---+---+---+
+---+---+---+---+
| ? | I | ? | ? |
+---+---+---+---+
+---+---+---+---+
| ? | ? | A | P |
+---+---+---+---+
+---+---+---+---+---+---+
| B | R | ? | ? | ? | N |
+---+---+---+---+---+---+
+---+---+---+---+---+---+---+
| ? | O | L | ? | ? | A | ? |
+---+---+---+---+---+---+---+
*** Proper nouns, acronyms or abbreviations are not allowed.
DECLARE SUB addon (n!)
DIM SHARED proto(8) AS STRING, hist AS STRING, maxn
proto(1) = "-a-eri--"
proto(2) = "-u---e"
proto(3) = "-i--e"
proto(4) = "--l-er"
proto(5) = "-i--"
proto(6) = "--ap"
proto(7) = "br---n"
proto(8) = "-ol--a-"
OPEN "\words\words.txt" FOR INPUT AS #10
OPEN "8wrdfill.txt" FOR OUTPUT AS #12
FOR i = 1 TO 8
OPEN "usable" + LTRIM$(STR$(i)) + ".txt" FOR OUTPUT AS #i
NEXT
DO
LINE INPUT #10, w$
FOR i = 1 TO 8
IF LEN(w$) = LEN(proto(i)) THEN
good = 1: u$ = ""
FOR j = 1 TO LEN(w$)
IF MID$(proto(i), j, 1) <> MID$(w$, j, 1) AND MID$(proto(i), j, 1) <> "-" THEN
good = 0: EXIT FOR
END IF
IF MID$(proto(i), j, 1) = "-" THEN u$ = u$ + MID$(w$, j, 1)
NEXT
FOR j = 1 TO LEN(u$)
ch$ = MID$(u$, j, 1)
IF INSTR(u$, ch$) < j THEN good = 0
NEXT j
IF w$ <> LCASE$(w$) THEN good = 0
IF good THEN ct(i) = ct(i) + 1: PRINT #i, w$
END IF
NEXT
LOOP UNTIL EOF(10)
CLOSE 10
FOR i = 1 TO 8: PRINT ct(i); : NEXT: PRINT : PRINT
FOR i = 1 TO 8: CLOSE i: NEXT
addon 1
END
SUB addon (n)
OPEN "usable" + LTRIM$(STR$(n)) + ".txt" FOR INPUT AS #n
IF n >= maxn THEN
maxn = n: PRINT hist
IF n >= 6 THEN
src$ = hist
FOR i = 1 TO n - 1
FOR j = 1 TO LEN(proto(i))
IF MID$(proto(i), j, 1) <> "-" THEN
PRINT #12, MID$(proto(i), j, 1);
ELSE
PRINT #12, LEFT$(src$, 1);
src$ = LTRIM$(MID$(src$, 2))
END IF
NEXT
PRINT #12, " ";
NEXT
FOR i = 1 TO 26
IF INSTR(hist, MID$("abcdefghijklmnopqrstuvwxyz", i, 1)) = 0 THEN
PRINT #12, MID$("abcdefghijklmnopqrstuvwxyz", i, 1);
PRINT MID$("abcdefghijklmnopqrstuvwxyz", i, 1);
END IF
NEXT
PRINT
PRINT #12,
END IF
END IF
DO
INPUT #n, w$
bldu$ = "": good = 1
FOR i = 1 TO LEN(w$)
ch$ = MID$(w$, i, 1)
IF MID$(proto(n), i, 1) = "-" THEN bldu$ = bldu$ + ch$
IF INSTR(hist, ch$) > 0 THEN good = 0: EXIT FOR
NEXT i
IF good THEN
hsave$ = hist
hist = hist + bldu$ + " "
IF n = 8 THEN
PRINT hist
ELSE
addon n + 1
END IF
hist = hsave$
END IF
LOOP UNTIL EOF(n)
CLOSE n
END SUB
After eliminating strings with unusual words I'm left with:
? ? ?? ? ??? ? ?? ?? ? ? ?? ?? unused letters
maverick subdue hinge feller ziti wrap ajopqxy
maverick subdue hinge jolter file wrap aipqxyz
maverick subdue hinge jolter life wrap aipqxyz
maverick subdue hinge jolter wily reap afipqxz
maverick subdue hinge jolter wire flap aipqxyz
maverick subdue hinge jolter wiry flap aeipqxz
maverick subdue hinge jolter wiry leap afipqxz
maverick subdue hinge yeller ziti wrap afjopqx
wavering subdue fiche jolter limy reap aikpqxz
wavering subdue fiche jolter milk reap aipqxyz
wavering subdue fiche jolter rimy leap aikpqxz
It doesn't get past the first six words (even on the strings that were eliminated).
Trying from the bottom up it doesn't get farther than four words:
? ?? ? ??? ?? ? ?? unused letters
tollway broken chap aids bfgijmnpqruvxz
tollway broken chap aims bdfgijnpqruvxz
tollway broken chap airs bdfgijmnpquvxz
tollway broken chap bias dfgijmnpqruvxz
tollway broken chap bids afgijmnpqruvxz
tollway broken chap bima dfgijnpqrsuvxz
tollway broken chap bind afgijmpqrsuvxz
tollway broken chap bins adfgijmpqruvxz
tollway broken chap bird afgijmnpqsuvxz
tollway broken chap dibs afgijmnpqruvxz
tollway broken chap digs abfijmnpqruvxz
tollway broken chap dims abfgijnpqruvxz
tollway broken chap ding abfijmpqrsuvxz
tollway broken chap dins abfgijmpqruvxz
tollway broken chap dips abfgijmnqruvxz
tollway broken chap diva bfgijmnpqrsuxz
tollway broken chap fibs adgijmnpqruvxz
tollway broken chap fids abgijmnpqruvxz
tollway broken chap figs abdijmnpqruvxz
tollway broken chap find abgijmpqrsuvxz
tollway broken chap fins abdgijmpqruvxz
tollway broken chap firm abdgijnpqsuvxz
tollway broken chap firn abdgijmpqsuvxz
tollway broken chap firs abdgijmnpquvxz
tollway broken chap gibs adfijmnpqruvxz
tollway broken chap gids abfijmnpqruvxz
tollway broken chap gimp abdfijnqrsuvxz
tollway broken chap gins abdfijmpqruvxz
tollway broken chap gips abdfijmnqruvxz
tollway broken chap gird abfijmnpqsuvxz
tollway broken chap girn abdfijmpqsuvxz
tollway broken chap jibs adfgimnpqruvxz
tollway broken chap jigs abdfimnpqruvxz
tollway broken chap jins abdfgimpqruvxz
tollway broken chap jinx abdfgimpqrsuvz
tollway broken chap mibs adfgijnpqruvxz
tollway broken chap midi abfgjnpqrsuvxz
tollway broken chap mids abfgijnpqruvxz
tollway broken chap migs abdfijnpqruvxz
tollway broken chap mina bdfgijpqrsuvxz
tollway broken chap mind abfgijpqrsuvxz
tollway broken chap mini abdfgjpqrsuvxz
tollway broken chap minx abdfgijpqrsuvz
tollway broken chap nibs adfgijmpqruvxz
tollway broken chap nims abdfgijpqruvxz
tollway broken chap nips abdfgijmqruvxz
tollway broken chap pigs abdfijmnqruvxz
tollway broken chap pima bdfgijnqrsuvxz
tollway broken chap pina bdfgijmqrsuvxz
tollway broken chap ping abdfijmqrsuvxz
tollway broken chap pins abdfgijmqruvxz
tollway broken chap rias bdfgijmnpquvxz
tollway broken chap ribs adfgijmnpquvxz
tollway broken chap rids abfgijmnpquvxz
tollway broken chap rifs abdgijmnpquvxz
tollway broken chap rigs abdfijmnpquvxz
tollway broken chap rims abdfgijnpquvxz
tollway broken chap rind abfgijmpqsuvxz
tollway broken chap ring abdfijmpqsuvxz
tollway broken chap rips abdfgijmnquvxz
tollway broken chap sign abdfijmpqruvxz
tollway broken chap simp abdfgijnqruvxz
tollway broken chap sing abdfijmpqruvxz
tollway broken chap vigs abdfijmnpqruxz
tollway broken chap vims abdfgijnpqruxz
tollway broken chap visa bdfgijmnpqruxz
tollway broken chap zigs abdfijmnpqruvx
tollway broken chap zing abdfijmpqrsuvx
tollway broken chap zips abdfgijmnqruvx
tollway broken crap aids bfghijmnpquvxz
tollway broken crap aims bdfghijnpquvxz
tollway broken crap bias dfghijmnpquvxz
tollway broken crap bids afghijmnpquvxz
tollway broken crap bima dfghijnpqsuvxz
tollway broken crap bind afghijmpqsuvxz
tollway broken crap bins adfghijmpquvxz
tollway broken crap dibs afghijmnpquvxz
tollway broken crap digs abfhijmnpquvxz
tollway broken crap dims abfghijnpquvxz
tollway broken crap ding abfhijmpqsuvxz
tollway broken crap dins abfghijmpquvxz
tollway broken crap dips abfghijmnquvxz
tollway broken crap dish abfgijmnpquvxz
tollway broken crap diva bfghijmnpqsuxz
tollway broken crap fibs adghijmnpquvxz
tollway broken crap fids abghijmnpquvxz
tollway broken crap figs abdhijmnpquvxz
tollway broken crap find abghijmpqsuvxz
tollway broken crap fins abdghijmpquvxz
tollway broken crap fish abdgijmnpquvxz
tollway broken crap gibs adfhijmnpquvxz
tollway broken crap gids abfhijmnpquvxz
tollway broken crap gimp abdfhijnqsuvxz
tollway broken crap gins abdfhijmpquvxz
tollway broken crap gips abdfhijmnquvxz
tollway broken crap hind abfgijmpqsuvxz
tollway broken crap hins abdfgijmpquvxz
tollway broken crap hips abdfgijmnquvxz
tollway broken crap hisn abdfgijmpquvxz
tollway broken crap jibs adfghimnpquvxz
tollway broken crap jigs abdfhimnpquvxz
tollway broken crap jins abdfghimpquvxz
tollway broken crap jinx abdfghimpqsuvz
tollway broken crap mibs adfghijnpquvxz
tollway broken crap midi abfghjnpqsuvxz
tollway broken crap mids abfghijnpquvxz
tollway broken crap migs abdfhijnpquvxz
tollway broken crap mina bdfghijpqsuvxz
tollway broken crap mind abfghijpqsuvxz
tollway broken crap mini abdfghjpqsuvxz
tollway broken crap minx abdfghijpqsuvz
tollway broken crap nibs adfghijmpquvxz
tollway broken crap nigh abdfijmpqsuvxz
tollway broken crap nims abdfghijpquvxz
tollway broken crap nips abdfghijmquvxz
tollway broken crap pigs abdfhijmnquvxz
tollway broken crap pima bdfghijnqsuvxz
tollway broken crap pina bdfghijmqsuvxz
tollway broken crap ping abdfhijmqsuvxz
tollway broken crap pins abdfghijmquvxz
tollway broken crap pish abdfgijmnquvxz
tollway broken crap sigh abdfijmnpquvxz
tollway broken crap sign abdfhijmpquvxz
tollway broken crap simp abdfghijnquvxz
tollway broken crap sing abdfhijmpquvxz
tollway broken crap vigs abdfhijmnpquxz
tollway broken crap vims abdfghijnpquxz
tollway broken crap visa bdfghijmnpquxz
tollway broken crap zigs abdfhijmnpquvx
tollway broken crap zing abdfhijmpqsuvx
tollway broken crap zips abdfghijmnquvx
tollway broken snap bima cdfghijpqruvxz
tollway broken snap bird acfghijmpquvxz
tollway broken snap diva bcfghijmpqruxz
tollway broken snap firm abcdghijpquvxz
tollway broken snap gimp abcdfhijqruvxz
tollway broken snap gird abcfhijmpquvxz
tollway broken snap mica bdfghijpqruvxz
tollway broken snap midi abcfghjpqruvxz
tollway broken snap pica bdfghijmqruvxz
tollway broken snap pima bcdfghijqruvxz
tollway broken snap rich abdfgijmpquvxz
|
Posted by Charlie
on 2013-06-04 17:19:05 |