From: John L. <jr...@us...> - 2007-11-08 05:41:25
|
Update of /cvsroot/wxlua/wxLua/samples In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6888/samples Modified Files: wxluasudoku.wx.lua Log Message: Update for changes in wxLua, overloaded functions, fix printing Index: wxluasudoku.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/wxluasudoku.wx.lua,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** wxluasudoku.wx.lua 26 Jul 2007 18:56:40 -0000 1.74 --- wxluasudoku.wx.lua 8 Nov 2007 05:41:21 -0000 1.75 *************** *** 54,58 **** function TableSetValue(value, atable, ...) if type(atable) ~= "table" then atable = {} end ! local t = atable -- t moves up levels through t local args = {...} for n = 1, #args-1 do --- 54,58 ---- function TableSetValue(value, atable, ...) if type(atable) ~= "table" then atable = {} end ! local t = atable -- t moves up levels through atable local args = {...} [...1390 lines suppressed...] local s = sudoku.GeneratePuzzle() ! s = sudoku.GeneratePuzzleDifficulty(35, s, true) sudoku.UpdateTable(s) ! local n, h = sudoku.FindAllNakedHiddenGroups(true, s) --TableDump(n) --- 5170,5182 ---- print(os.time()-t) end --[[ ! for i = 1, 1 do local s = sudoku.GeneratePuzzle() ! s = sudoku.GeneratePuzzleDifficulty(s, 35, true) sudoku.UpdateTable(s) ! local n, h = sudoku.FindAllNakedHiddenGroups(s, true) --TableDump(n) |