lafferjm wrote:
Its very good that you learned how to do that. Now you should figure out how to do it with strings
I found that way annoying, so I never bothered to memorize it.
:ClrHome
:2→C:2→D
:[[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2][2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2][2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2][2,0,0,0,2,2,2,2,0,0,0,2,1,2,0,2][2,0,2,0,0,0,0,0,0,2,0,0,0,2,0,2][2,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2][2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2][2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]]→[A]
:For(A,1,8)
:For(B,1,16)
:[A](A,B)
:If Ans≠0:Then
:Output(A,B,sub("WX",[A](A,B),1))
:End
:End
:End
:Output(D,C,"θ")
:Repeat [A](D,C)=1
:getKey→K
:If K≠0:Then
:Output(D,C," ") //1 space
Modified code begins here
↓
:C→U:D→V
:C-(K=24)+(K=26)→C
:D-(K=25)+(K=34)→D
:If 1<[A](D,C)
:Then
:U→C:V→D
:End
↑
Modified code ends here
:Output(D,C,"θ")
:End
:End
:ClrHome
:Output(1,4,"YOU WIN")
:Pause
:ClrHome
:Return
:C-(K=24)+(K=26)→U
:D-(K=25)+(K=34)→V
:If 1>=[A](V,U)
:Then
:U→C:V→D
:End
:C-(K=24)+(K=26)→U
:D-(K=25)+(K=34)→V
:If 1>=[A](V,U)
:Then
:U→C:V→D
:End
:C-(K=24)+(K=26)→U
:D-(K=25)+(K=34)→V
:If 1>=[A](V,U)
:Then
:U→C:V→D
:End
:C-(K=24)+(K=26)→U
:D-(K=25)+(K=34)→V
:If 1>=[A](V,U)
:Then
:U→C:V→D
:End
:C-(K=24)+(K=26)→U
:D-(K=25)+(K=34)→V
:If 1>=[A](V,U)
:Then
:U→C:V→D
:End
Advertisement