Code covered by the BSD License  

Highlights from
Sudoku

image thumbnail

Sudoku

by

 

14 Oct 2010 (Updated )

Solves 9X9 Sudokus of any difficulty level

[]=msave(b,d,i,j,a,n)
function []=msave(b,d,i,j,a,n)
%called by randsolve to save data in 'back'
%Part of Project : Sudoku

           data=load('back');
           asum=data.asum+1;
           b99=data.b99;b99(:,:,asum)=b;
           d999=data.d999;d999(:,:,:,asum)=d;
           x1=data.x1;x1(asum)=i;
           x2=data.x2;x2(asum)=j;
           az=data.az;az(asum,1:n)=a;
           iz=data.iz;iz(asum)=1;
           nz=data.nz;nz(asum)=n;
           save('back','asum','b99','d999','x1','x2','az','iz','nz');          

Contact us