Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv21763/wxLua/samples
Modified Files:
wxluasudoku.wx.lua
Log Message:
lots of cleanup, faster and more complete initial puzzle soln, docs update
Index: wxluasudoku.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/wxluasudoku.wx.lua,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** wxluasudoku.wx.lua 2 Jun 2006 04:41:08 -0000 1.53
--- wxluasudoku.wx.lua 5 Jun 2006 05:14:24 -0000 1.54
***************
*** 628,632 ****
-- Remove a possible values from the row, col, block
-- if exceptTable then don't remove it from exceptTable[cell#] = true
! function sudoku.RemovePossibleAll(row, col, value, sudokuTable, exceptTable, break_empty)
exceptTable = exceptTable or {}
local cell
--- 628,632 ----
-- Remove a possible values from the row, col, block
-- if exceptTable then don't remove it from exceptTable[cell#] = true
! function sudoku.RemovePossibleAll(row, col, value, sudokuTable, exceptTable, break_if_empty)
exceptTable = exceptTable or {}
[...2059 lines suppressed...]
***************
*** 4781,4789 ****
-- After being created - connect the size event to help MSW repaint the
-- child windows
! sudokuGUI.frame:Connect(wx.wxEVT_SIZE,
function (event)
! local width, height = sudokuGUI.frame:GetClientSize()
! --event:GetSize():GetWidth()/9, event:GetSize():GetHeight()/9
! sudokuGUI.GetCellBestSize(width/9, height/9)
sudokuGUI.Refresh()
event:Skip(true)
--- 4966,4973 ----
-- After being created - connect the size event to help MSW repaint the
-- child windows
! sudokuGUI.cellWindows[1]:Connect(wx.wxEVT_SIZE,
function (event)
! local width, height = sudokuGUI.cellWindows[1]:GetClientSize()
! sudokuGUI.GetCellBestSize(width, height)
sudokuGUI.Refresh()
event:Skip(true)
|