Skip to content

Instantly share code, notes, and snippets.

@jstrahan
jstrahan / wordz.lua
Created June 19, 2014 19:27
wordz.lua is used to check for acceptable words for word games like scrabble and others.
This file has been truncated, but you can view the full file.
local M = {}
local wordz = {}
wordz[1] = nil
wordz[2] = { 'aa','ab','ad','ae','ag','ah','ai','al','am','an','ar','as','at','aw','ax','ay','ba','be','bi','bo','by','de','do','ed','ef','eh','el','em','en','er','es','et','ex','fa','go','ha','he','hi','hm','ho','id','if','in','is','it','jo','ka','la','li','lo','ma','me','mi','mm','mo','mu','my','na','ne','no','nu','od','oe','of','oh','om','on','op','or','os','ow','ox','oy','pa','pe','pi','re','sh','si','so','ta','ti','to','uh','um','un','up','us','ut','we','wo','xi','xu','ya','ye','yo' }
wordz[3] = { 'aah','aal','aas','aba','abo','abs','aby','ace','act','add','ado','ads','adz','aff','aft','aga','age','ago','aha','aid','ail','aim','ain','air','ais','ait','ala','alb','ale','all','alp','als','alt','ama','ami','amp','amu','ana','and','ane','ani','ant','any','ape','apt','arb','arc','are','arf','ark','arm','ars','art','ash','ask','asp','ass','ate','att','auk','ava','ave','avo','awa','awe','awl','awn','axe','aye','ays','azo','baa','bad','bag','bah','
-----------------------------------------------------------------
-- copyright © 2014 Jeff Strahan --
-- Permission is granted to use this code --
-- in any of you own projects free of charge --
-- For more modules, templates, tutorials, and snippets --
-- visit http://www.j-strahan.com --
-----------------------------------------------------------------
-- --
-- _rgb.lua is a module used to set object --
-- colors by using color names. --
@jstrahan
jstrahan / _typeExtend.lua
Last active April 30, 2017 01:42
typeExtend
-----------------------------------------------------------------
-- copyright © 2014 Jeff Strahan --
-- Permission is granted to use this code --
-- in any of you own projects free of charge --
-- For more modules, templates, tutorials, and snippets --
-- visit http://www.j-strahan.com --
-----------------------------------------------------------------
-- --
-- type() returns the type of an object, (nil, number, string, --
-- boolean, table, function, thread, userdata ) as defined by --