Hi, I'm new here so I'm not sure if this may have been answered somewhere else. I'm also new to TI-Basic, so this might be a really easy fix. Basically, I've created a memory game just to use to play around with coding, and I want a highscores table. I used the thread on the site about highscores, and the code isn't working. I would post the code, but I don't know how to put it in a box like every other post I've read.
Hey, welcome to wikidot. Except, wikidot hosts TI|BD, so you haven't technically joined TI|BD. You need to join TI|BD. Welcome anyway!!!! Okay, for high scores, you are going to want to use lists. Basically, you would be storing one past the last element, sorting it, and changing it to be only X elements long.
Welcome to TI|BD!
Have you looked at the highscores page?
I have read the highscores page, here's the code, maybe now it'll be easier to find my problem.
:SetUpEditor HIGH :If 7≠dim(∟HIGH:Then :" " :Ans+Ans :Ans+Ans :Ans+Ans+Ans→Str0 :0binomcdf(6,0→HIGH :End :ClrHome :0→S :1→T :Lbl 1 :randInt(10000,99999)→N :Output(4,5,"REMEMBER" :Output(5,7,N :For(X,1,500,T) :End :ClrHome :Input "GUESS? ",G :ClrHome :If G=N :Then :Disp "CORRECT" :S+1→S :T+.1→T :Pause :Goto 1 :Else :Disp "WRONG","","FINAL SCORE:",S :IF max(S>∟HIGH:Then :Disp "NEW HIGH SCORE!" :Input "YOUR NAME? ",Str1 :sub(Str1+" (9 spaces) ",1,10→Str1 :1+sum(S<∟HIGH :sub(Str0,1,10Ans-9)+Str1+sub(Str0,10Ans-8,81-10Ans→Str0 :S→∟HIGH(8:SortD(∟HIGH :7→dim(∟HIGH :End :Pause :ClrHome
well it works for me unless it's has to do something else.
When it starts it gives me a random number between 10000 and 99999 and after a second I got to enter it again. If it's wrong it gives me a message of my final score, if not it gives another random number. If that final score is bigger than the lowest in the highscore list it asks for my name.
Is that anything else than what it's has to do?