Comment Sudoku Fun!

Smud

Member
took the excel solution from Sudoku Solver and translated to Openedge. Openedge does not have multi dimmentional arrays so it requires some "fiddles".

Also note the variable "tom" in the Excel vba is an uninitialised variable so it equates to zero, also note,
dodgy variable scoping eg subroutine "CheckError" passes in but does not use the "start" variable, the
routine "DetermineReady" has variables Row and Column as private. All a bit of Swedish Wordplay I do not understand. Anyway, have a play...
 

Attachments

  • sudoku.w
    56.9 KB · Views: 8

Cecil

19+ years progress programming and still learning.
I love this kind of stuff. I've wanted to do something like this as well.

  • Recommendation:
  • Clear button.
  • When entering a cell value, tab to the next available cell. When the last cell, solve.
  • Navigate cells using the keyboard arrow keys?
 

Smud

Member
I had a "clear" button - easy enough - just the "real estate" is a bit tight. Anyway, the tab and arrow keys might need some investigation to work out an efficient method - with 81 "FILL-IN" fields I don't want to have a stack of triggers - good problem to contemplate! And exactly why I did this - novelty - yes - show off in a demo - yes - learn something I can use - definitely!
 

Attachments

  • sudoku.w
    60.5 KB · Views: 1

Cringer

ProgressTalk.com Moderator
Staff member
If you create the widgets on the fly, rather than having them static, it's relatively easy to reuse trigger code. Check out my sinkem.w in this thread Handle where I do something similar.
 

Smud

Member
Kept it simple, works well with 3 buttons on cursor-up / -down :)
 

Attachments

  • sudoku.w
    60.9 KB · Views: 11
Top