No BSD License  

Highlights from
Sudoku! (v3.4)

3.8

3.8 | 5 ratings Rate this file 19 Downloads (last 30 days) File Size: 15.17 KB File ID: #11247
image thumbnail

Sudoku! (v3.4)

by Alan Tan

 

01 Jun 2006 (Updated 10 Jan 2008)

Sudoku! is the ultimate GUI for Sudoku fans. No messy scribbles, simply click away to the solution.

| Watch this File

File Information
Description

Sudoku! is the ultimate GUI for all Sudoku lovers. It really removes the messy scribbles; simply left- or right-click to either select or discard the hints. Hints are generated on-the-go by eliminating the invalid candidates after every move.

The GUI loads both *.txt and *.mat files. In this new package, two solvers are included- sudoku_solve resolves naked singles, hidden singles, hidden pairs and locked candidates; sudoku_solveguess employs a guessing strategy to reach a possible solution. Also included in this new package is sudoku_mini which really helps to simplify gameplay (see screenshot). For the advanced users, you may even develop your own functions and launch them from the GUI (see Readme.txt for more details). Like the previous version, a Record&Recall option lets you store the present board for later retrieval. And lastly, to keep frustration levels within healthy bounds, I have also added an Undo button to reverse the moves that you last made. :)

A must-have for all Sudoku enthusiasts, amateurs and pros alike! Get one now and play Sudoku like you never did before!

If you like the GUI, please comment below; otherwise (e.g., if you find a suspicious bug), send an email to me. :)

Essential files: sudoku_config.txt, sudoku_gui.m, sudoku_guicb.m, sudoku_makemap.m
Accompanying files: sudoku_mini.m, sudoku_solve.m, sudoku_solveguess.m, sudoku_maps-01.mat, sudoku_maps-02.mat, sudoku_maps-03.mat, sudoku_maps-z01.mat, Readme.txt

Acknowledgements
This submission has inspired the following:
Sudoku (Dancing Links Solver)
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
07 Nov 2006 Nehme Shehab  
28 Jun 2007 simon j

??? Attempt to grow array along ambiguous dimension.

Error in ==> sudoku_guicb at 128
            h3(end+1) = ud1.h2(k,n,d);

??? Error using ==> sudoku_guicb('buttondownfcn',get(gcbf,'UserData'))
Attempt to grow array along ambiguous dimension.

??? Error while evaluating text ButtonDownFcn

18 Nov 2007 Alan Tan

Sudoku! runs fine on my PC, no bugs at all unless I haphazardly left- and right-click through the hints in the main figure; on a bad day, I get an error in every 3 hours of use. The bug pointed out below could be due to a conflict in version or some other reasons beyond me (I have never came across this particular error message in all the years I used Matlab). Btw, you do not give a 1-rating simply because you find a suspicious bug. To be fair to all the people (and that includes me!) who painstakingly put in a couple of hundreds of lines of code for you to use (at no charge at all!), send us an email if you do find a bug; read the instructions above, please!

29 Nov 2007 Goncalo Santos  
10 Jan 2008 The Author

Later versions of Matlab (probably R2007 and above) generate the 'Attempt to grow array along ambiguous dimension' errors (as pointed out by Simon in the reviews) when the following is run:
h(1,1,1) = 1;
h(1,1,2) = 1;
h(end+1) = 1;
This error is, however, nonexistent in earlier versions of Matlab. To circumvent the problem, I have made a small revision to sudoku_guicb.m; in particular, the insertion of Line 119. Many thanks to John for his time and patience for helping me test this out.

20 Mar 2008 Reza Reyhani  
31 Jul 2008 janeth osorio

jjj

Please login to add a comment or rating.
Updates
02 Jun 2006

Added a sudoku_maps.mat file containing a personal collection of Sudoku problems. Problems are rated e, m, h, and z denoting easy, medium, hard, and impossible (for my present solver, that is).

02 Jun 2006

Added a sudoku_maps.mat file containing a personal collection of Sudoku problems. Problems are rated e, m, h, and z denoting easy, medium, hard, and impossible (for my present solver, that is).

06 Jun 2006

Update summary and description.

27 Jun 2006

Edited description.

28 Jun 2006

Edited description.

13 Jul 2006

Version 3.4!

14 Jul 2006

Edited description.

14 Jul 2006

Edited readme.txt.

21 Aug 2006

I listened to John this one time and uploaded the m-files. :) And along with that, 60 new puzzles!

19 Nov 2007

Edited Readme.txt.

10 Jan 2008

See User Reviews dated 2008-01-10.

Tag Activity for this File
Tag Applied By Date/Time
games Alan Tan 22 Oct 2008 08:27:22
gui Alan Tan 22 Oct 2008 08:27:22
scribbles Alan Tan 22 Oct 2008 08:27:22
solve Alan Tan 22 Oct 2008 08:27:22
hint Alan Tan 22 Oct 2008 08:27:22
sudoku Ned Gulley 24 Oct 2008 21:12:48
sudoku Alan Tan 30 Mar 2009 00:08:48

Contact us at files@mathworks.com