3.0

3.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 17.9 KB File ID: #34988
image thumbnail

Sudoku

by Stepen Sahrun

 

09 Feb 2012 (Updated 10 Feb 2012)

This code generates a random Sudoku puzzle or solves any given Sudoku puzzle.

| Watch this File

File Information
Description

I've been addicted to Sudoku since I knew the game and I play this game almost daily in my cellphone. However, sometimes the puzzle that I tried to solve is quite hard because I need to 'guess' a value at some point. To clear my frustation, I made SudokuSolver.m to solve any given Sudoku puzzle. This m-file includes random guessing scheme, so, when it is given an empty Sudoku puzzle, it will solves it and as the result, it generates a random Sudoku puzzle. After that, another m-file, Sudoku.m was made to generate user-interface for SudokuSolver.m.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File  
Everyone's Tags
game(3), help, sudoku(2)
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
17 Apr 2013 Nikhil

There is an issue I can't seem to fix, for the callback functions like startgameeasyfcn (~,~) in sudoku.m it gives an error saying '~' is an unexpected operator. Please help.

Updates
10 Feb 2012

Correcting required products

Contact us