help me pls
I have realized that i missed a line of code and i put it in, but now it is giving me an error, the error is a data type, btw i am new to coding on the ti-84, and new to coding in general so any and all help would be much appreciated
Take it slow and make sure you typed it in correctly. The code on that page is known to work.
When you get ther error, click “Goto”. What line does it take you to?
Make sure it's the List (ʟ) and not the actual variable L
EDIT: I edited the code a bit. Fixed the If max(ʟA=Ans to prevent confusion. Replaced the original ⌊'s to ʟ's.
http://tibasicdev.wikidot.com/snake
Edited code:
:26→K
:1.1→B
:{4Ans→A
:ClrHome
:For(A,1,ᴇ2
:randInt(1,16)+.1randInt(1,8→C
:Repeat C=Ans(1
:A→dim(ʟA
:ʟA(1
:Output(10fPart(Ans),int(Ans),"O
:Output(10fPart(B),int(B)," //1 space
:Output(10fPart(C),int(C),"*
:getKey
:If Ans=45
:Goto 0
:If Ans=34 or 2>abs(Ans-25
:Ans→K
:ʟA(A→B
:ʟA(1)+(K=26)-(K=24)+.1((K=34)-(K=25
:If max(ʟA=Ans
:Goto 0
:Ans+16(not(int(Ans))-(17=int(Ans)))+.8(not(fPart(Ans))-(.9=fPart(Ans
:augment({Ans},ʟA→A
:End
:augment(Ans,{Ans(A→A
:End
:Lbl 0
:ClrHome
:A
Original code:
:26→K
:1.1→B
:{4Ans→A
:ClrHome
:For(A,1,E2
:randInt(1,16)+.1randInt(1,8→C
:Repeat C=Ans(1
:A→dim(⌊A
:⌊A(1
:Output(10fPart(Ans),int(Ans),"O
:Output(10fPart(B),int(B)," // 1 space
:Output(10fPart(C),int(C),"*
:getKey
:If Ans=45
:Goto 0
:If Ans=34 or 2>abs(Ans-25
:Ans→K
:⌊A(A→B
:⌊A(1)+(K=26)-(K=24)+.1((K=34)-(K=25
:If max(LA=Ans
:Goto 0
:Ans+16(not(int(Ans))-(17=int(Ans)))+.8(not(fPart(Ans))-(.9=fPart(Ans
:augment({Ans},⌊A→A
:End
:augment(Ans,{Ans(A→A
:End
:Lbl 0
:ClrHome
:A
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Im now getting just a one on the screen again, and thx, i didnt know if ppl were still active on here. lol
You're welcome. Glad to help Greenies like you :)
Btw nice profile pic, looks like it's moving. An illusion. Good that,
And yes, some of us are very active here. Some other members here aren't active anymore. It's rather sad when the site was very active in the "Golden Age of TI-Basic". Active members continue to dwindle. But I've noticed in that past 4 months that more and more Greenies have been asking TI-Basic-related questions. Glad to know people are still interested in a not-so-great language like TI-Basic.
Hewwo, my name is Achak Claw. I was formerly BioHazard.
thanks, its pewdiepie's theme thing, and do you know how to help with me getting a one when I run the code, and ive tried java and python, but i figured it would be better to start with something well…….. TI-BASIC ( i couldnt resist the pun), and do you know of a fairly simple tetris code or something similar
so i fixed th one problem, but now when i hit enter after bringing the prgmSNAKE screen up, it will flash the dot, and if i hit the down button fast enough the snake will move, but then hits a wall and i get either a done screen after trying to go in a different direction or if i let it hit the wall it will say ERR:DOMAIN 1:QUIT
2:GOTO
after hitting goto it takes me to line
:Output(10fPart(Ans),Int(Ans),"0_ The line at the end stands for the space that is supposed to be there,but it puts me on the space as if it may be incomplete or unrecognizeable
There is no space at the end of that line, the code for display is below, with the _ representing the space.
:Output(10fPart(Ans),int(Ans),"O
:Output(10fPart(B),int(B),"_
:Output(10fPart(C),int(C),"*
Keep in mind the main cause of programs not working is a small typo on the calculator. Even I still mess up when I type in code by hand and I've been programming for years. Just take it slow, and check each line
i have the code pulled up and after line :Output(10fPart(Ans),int(Ans),"0 there is a blank line, there isnt a colon or anything, its just a big gap in the code, is there any way to fix this, and i fixed the space issue, but now when i run the program, the same thing is still happening, and what are the controls for the game?
i still cant get the game to run, it will show it for a second or so, then done will pop up on the screen
ive got the timing down to start it, but i cant get the snake to move horizontally, but both ways vertically