BASIC Code wrote:
::DCS6
:"FFFF80018001800180018001800180018001800180018001800180018001FFFF
:"33182AA033282A282A18000002D806480A482648000000000000000000000000
:ClrHome
:8→A:4→B
:8→C:8→D
:1→H
:"WθX0→Str2
:"-!-¡→Str9
:Lbl 0
:prgmZMAP9
:Pause
:For(Y,1,8
:For(X,1,16
:[A](Y,X
:{9,1,9,3,4,5→L3
:Output(B,A,"π
:Lbl B
:While 1
:Repeat Ans
:getKey
:End
:Ans→K
:(K=24)+2(K=25)+3(K=26)+4(K=34→H
:Output(B,A,"
:A-(K=24 and [A](B,A-1)≠L3([A](B,A-1)+1))+(K=26 and [A](B,A+1)≠L3([A](B,A+1)+1→A
:B+(K=34 and [A](B+1,A)≠L3([A](B+1,A)+1))-(K=25 and [A](B-1,A)≠L3([A](B-1,A)+1→B
:Output(B,A,"π
:Goto Z
:A→I:B→J
:I-(H=1 and [A](B,A-1)2)+(H=3 and [A](B,A+1)2→I
:J-(H=2 and [A](B-1,A)2)+(H=4 and [A](B+1,A)2→J
:Lbl Z
:If A=1:Then
:15→A:D-1→D
:Goto 0:End
:If A=16:Then
:2→A:D+1→D
:Goto 0:End
:If B=1:Then
:7→B:C-1→C
:Goto 0:End
:If B=8:Then
:2→B:C+1→C
:Goto 0:End
:While 0:
:If 7.5=abs(.5(A-8.5)) or 3.5=abs(.5(B-4.5
:Goto 0
:If A=1 or A=16 or B=1 or B=8
:Then
:D-(A=1)+(A=16→D
:C-(B=1)+(B=8→C
:Ans→C
:A+15(A=1)-14(A=16→A
:B+7(B=1)-6(B=8→B
:End
:If Ans:Goto 0
:Lbl Y
:End:End
:End:End
Generated by SourceCoder, © 2005-2010 Cemetech
:"FFFF80018001800180018001800180018001800180018001800180018001FFFF
:"33182AA033282A282A18000002D806480A482648000000000000000000000000
:ClrHome
:8→A:4→B
:8→C:8→D
:1→H
:"WθX0→Str2
:"-!-¡→Str9
:Lbl 0
:prgmZMAP9
:Pause
:For(Y,1,8
:For(X,1,16
:[A](Y,X
:{9,1,9,3,4,5→L3
:Output(B,A,"π
:Lbl B
:While 1
:Repeat Ans
:getKey
:End
:Ans→K
:(K=24)+2(K=25)+3(K=26)+4(K=34→H
:Output(B,A,"
:A-(K=24 and [A](B,A-1)≠L3([A](B,A-1)+1))+(K=26 and [A](B,A+1)≠L3([A](B,A+1)+1→A
:B+(K=34 and [A](B+1,A)≠L3([A](B+1,A)+1))-(K=25 and [A](B-1,A)≠L3([A](B-1,A)+1→B
:Output(B,A,"π
:Goto Z
:A→I:B→J
:I-(H=1 and [A](B,A-1)2)+(H=3 and [A](B,A+1)2→I
:J-(H=2 and [A](B-1,A)2)+(H=4 and [A](B+1,A)2→J
:Lbl Z
:If A=1:Then
:15→A:D-1→D
:Goto 0:End
:If A=16:Then
:2→A:D+1→D
:Goto 0:End
:If B=1:Then
:7→B:C-1→C
:Goto 0:End
:If B=8:Then
:2→B:C+1→C
:Goto 0:End
:While 0:
:If 7.5=abs(.5(A-8.5)) or 3.5=abs(.5(B-4.5
:Goto 0
:If A=1 or A=16 or B=1 or B=8
:Then
:D-(A=1)+(A=16→D
:C-(B=1)+(B=8→C
:Ans→C
:A+15(A=1)-14(A=16→A
:B+7(B=1)-6(B=8→B
:End
:If Ans:Goto 0
:Lbl Y
:End:End
:End:End
Generated by SourceCoder, © 2005-2010 Cemetech