This is my blog. Duh. This is where I will discuss my current projects, hand out routines or code snippets, or any other ideas I have.
First, I must thank DarkerLine for “showing” (I just saw it in his sig) me WordPress. It’s much more managable than Blogger.com.
When you leave comments, it’s preferred you use the same username you have at UTI.
To kick start this, here’s the source to a little subroutine of mine:
:For(θ,1,2
:For(Z,1,9
:Matr►List[A],Z,L1
:SortA L1
:If not(min(L1=1,2,3,4,5,6,7,8,9
:Goto Q
:End
:[A]T→[A]
:End
:For(A,1,7,3
:For(B,1,7,3
elVar CDelVar L19→dim(L1
:For(X,A,A+2
:For(Y,B,B+2
:C+1→C
:[A](X,Y→L1(Ans
:End
:End
:SortA L1
:If not(min(L1=1,2,3,4,5,6,7,8,9
:Goto Q
:End
:End
isp "Legitimate.
:Return
:Lbl Q
isp "Invalid.
Take a stab at what it does. If it’s not obvious immediately, read on.
It checks the validity of the sudoku in [A]. The idea was presented to me by todlangweilig, which I converted into this code.