Edit: Problem resolved. See bottom posts.
I don't expect there to be many people on this forum who program a TI-83 calculator, but in case there is anyone, please help me with my code.
First, I'll tell you what code I have.
In my code below I represent two symbols as follows:
STO symbol: ->
does not equal: /=
Also, if I mess up the code tags, can someone tell me how they are done?
:0->Q
:1->E
:1->F
:0->U
:0->V
:ClrHome
:
:Disp "USE THE ARROW","BUTTONS TO","NAVIGATE.","","PRESS ANY BUTTON","TO CONTINUE."
:Pause
:
:While Q/=1
:ClrHome
:
:For(V,1,8)
:For(U,1,16)
:If U=E and V=F
:Then
:Output(V,U,"O")
:Else
:Output(V,U,".")
:End
:End
:End
:
:If E=16 and F=8
:Goto ND
:If getKey=24
:E-1->E
:If getKey=25
:F-1->F
:If getKey=26
:E+1->E
:If getKey=34
:F+1->F
:End
:
:Lbl ND
:ClrHome
:Disp "YOU WIN!"
:DelVar V
:DelVar U
:DelVar F
:DelVar E
:DelVar Q
:Stop
I realize that this code isn't terribly efficient, especially at refreshing, which takes ages, but that isn't my concern right now. I'm trying, first of all, to figure out what I did wrong on the movement. If anyone can direct me on how to make the code more efficient, that would help as well. For example, I tried building up a string in the for-loop nested within the for-loop, but it gave an invalid dimension error. This is how I did it, by the way:
:"O"+Str1->Str1
Thanks in advance for anyone with any answers. If you need me to clarify my problem, just let me know.
[Edited by - Tallun on April 21, 2006 4:17:31 PM]