Word Cube in Lua
a guest Jul 20th, 2010 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- -- q contains all the letters from s?
- function containedIn(s,q)
- local r
- for i=1,#s do
- if r==0 then return false end
- return true
- function cubeWords(q)
- for l in io.lines("words.txt") do
- if #l>3 and string.find(l,q5) and containedIn(l,q) then
RAW Paste Data