Nibbles
You have not uploaded your program! Please edit the page to upload your program.
|
![]() |
||||||||||||||
Nibbles is a version of snake, which is very graphical and very fast. This version of snake is unique because it doesn't use any list variables to control the movement of the snake. This page has been copied here from a deprecated portion of the site. To see the original page, click here |
What the community thinks:
This Code has been proven to work both with the download, and with the source code. If it is not working on your calculator, please do the following before asking for help:
Helpful tips for if you are not using the download:
Hi, I'm having a difficulty with the line
Whenever I try to run the program, it gives me a domain error. I am positive I have it typed in correctly. Do you know how I can fix this?
Edit: It also says the line after that has an error
I'm going to tell you something that you probably don't want to hear: make sure you typed in the entire code correctly. I know you're frustrated, but programming takes patience. One misplaced character and the entire program doesn't work properly. Just patiently go through the whole code and make absolutely sure you typed it in correctly.
I do find your edit intriguing because the calculator wouldn't say the succeeding line has an error unless the previous one doesn't. So that tells me that you either found some way to fix the first error, or you typed in something wrong elsewhere in the code.
Like Myles said, check your code again. My post on this thread clearly says that it is proven to work, and even includes a video showing the source code works.
This Code has been proven to work both with the download, and with the source code. If it is not working on your calculator, please do the following before asking for help:
Make sure you are using a TI-83/84/+/SE calculator. This does not include the TI-83, 84+ CE, or the 84+ CSE. This code will only work on monochrome calculators.
Be sure you have typed EVERYTHING in correctly. One mistake can cause the whole program be glitched
hey so I've checked over my code and it is totally correct. the issue is that i get an error on the line pxl-test(F,E-1)-pxl-test(F,E+1
what should i do?
(besides checking over my code, ive done it about 5 times and found nothing wrong with it)
Check to make sure you don't have any signs flipped, or anything missed. It happened to me a few (more like several) times, but it fixed the problem.
Hewwo, my name is Achak Claw. I was formerly BioHazard.
I’m having the same issue, did you ever get it fixed?
I keep on getting a syntax error on the line "1+θ→θ" (specifically the second zero for some reason)
That is not a 0; It is Theta, which is entered using [2nd]+[3]
Thanks! (It's actually [Alpha]+[3] but you still helped a bunch!)
Eh, cut him some slack.
He's been a calculator developer since the 1700s.
Hewwo, my name is Achak Claw. I was formerly BioHazard.
I am trying to create a Top 10 highscore list for Nibbles, what would the fastest way of you guys doing it? I use a lot of For( loops!
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Add this at the end:
Thanks, I totally get you! (I don't own a phone, I used to did that on an iPad last school year)
This is my code:
Let's say you have a highscore of 250, and the list content are currently at:{456,440,438,431,358,304,60,3}.
Ill upload soon, I need more time
Hewwo, my name is Achak Claw. I was formerly BioHazard.
I think you could do something like:
Apologies if this is wrong, I haven't done TI Basic in a very long time, as my attention has been focused on Robotics and some other TIBD side projects.
Congratulations on the karma increase as well! :)
You forgot to add X into the list… And the nibbles program uses theta for score, not X
I just used X as an example cause I didn't have enough time to look at the source code.
If you just got 57 in Nibbles, and the highest score is 25, everything in the list is shifted down a section while the top is updated. If your score placed "3rd" in the list, again, everything is shifted (starting from 3rd and so on) while 3rd place is updated. This fully works with no bugs in the code. It took me almost an hour to do, so I am showing off my fruits of labor. ;P
Here is my finished code. Don't get your eyes tangled! I know it looks confusing, but it works!
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Idk why you made it so complex. The code Battlesquid or I provded does the same thing and works with lists of any size without having to change anything. Also, yours uses an extra variable, so if users already are using it in their code they have to change that. And they have to change theta to whatever their score variable is in mutiple spots.
Most of the time, a simpler code is better than complex code that does the same thing.
The "extra" variable is the score you got in a game, I added this so you can kind of see how it works.
Hewwo, my name is Achak Claw. I was formerly BioHazard.
No, the extra variable I was talking about is I which you used in your for loop.
I agree with
Trenly. Usually, the best code to write is the simplest one. It will run faster and will take up less memory. Furthermore, simple code is easier to understand than something really complicated.
so i tried the code and it works but there is one small issue; when i eat the apple my snake wont get any bigger, and at the end it says my score is 0 even after eating a lot of apples. any idea how to fix this?
As always, make sure you typed the code in exactly the same as you see in the above code. If you make extra sure it’s the same and there’s still something wrong, post again with your errors
Nice game,
It is so fast — it blows my mind.
I want to try to port this to TI84+CE, is there an easy way to do this? Currently it sorta works for the CE but only for ~1.5 seconds lmao