Comments for page "Nibbles"http://tibasicdev.wikidot.com/forum/t-847251/nibbles
Posts in the discussion thread "Nibbles"Fri, 22 Feb 2019 16:44:46 +0000http://tibasicdev.wikidot.com/forum/t-847251#post-4146612Re: ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-4146612
Fri, 08 Feb 2019 19:51:28 +0000Bio_Hazard12823338172
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.
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-4145776Re: ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-4145776
Fri, 08 Feb 2019 02:24:11 +0000Jacobz544984690
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)
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-4106627help pleasehttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-4106627
Thu, 03 Jan 2019 01:48:45 +0000Jacobz544984690
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?
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3778906Re: ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3778906
Tue, 24 Apr 2018 04:41:21 +0000Trenly1905506
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

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3778744Re: ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3778744
Tue, 24 Apr 2018 01:01:27 +0000Myles_Zadok2935702
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.

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3778723Re: ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3778723
Tue, 24 Apr 2018 00:28:39 +0000finn is scared3933969
Hi, I'm having a difficulty with the line

1-2pxl-Test(F+1,E

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

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3772346Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3772346
Tue, 17 Apr 2018 18:33:21 +0000Myles_Zadok2935702
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.
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3772329Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3772329
Tue, 17 Apr 2018 17:59:53 +0000Trenly1905506
No, the extra variable I was talking about is I which you used in your for loop.
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3772294Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3772294
Tue, 17 Apr 2018 17:16:15 +0000Bio_Hazard12823338172
The "extra" variable is the score you got in a game, I added this so you can kind of see how it works.
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3772105Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3772105
Tue, 17 Apr 2018 14:23:05 +0000Trenly1905506
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.

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3772085Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3772085
Tue, 17 Apr 2018 14:06:52 +0000Bio_Hazard12823338172
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

SetUpEditor LIST 8→dim(⸤LIST randInt(1,500→θ SortD(⸤LIST For(I,8,2,-1 If θ>⸤LIST(I) and ⸤LIST(I)>⸤LIST(I+1 ⸤LIST(I→⸤LIST(I+1 If θ>⸤LIST(I) and θ<⸤LIST(I-1 θ→⸤LIST(I End If θ>⸤LIST(1) and ⸤LIST(1)>⸤LIST(2 ⸤LIST(1→⸤LIST(2 If θ>⸤LIST(1 θ→⸤LIST(1

Here is my finished code. Don't get your eyes tangled! I know it looks confusing, but it works!
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3771751Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3771751
Tue, 17 Apr 2018 05:44:01 +0000Battlesquid2693561
I just used X as an example cause I didn't have enough time to look at the source code.
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3771415Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3771415
Mon, 16 Apr 2018 21:44:01 +0000Trenly1905506
You forgot to add X into the list… And the nibbles program uses theta for score, not X
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3771305Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3771305
Mon, 16 Apr 2018 19:42:59 +0000Battlesquid2693561
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! :)

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3771227Re: Highscore Top 8 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3771227
Mon, 16 Apr 2018 18:26:09 +0000Bio_Hazard12823338172
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

SetUpEditor NIBBLES //make sure the list is initialized 10→dim(⸤NIBBLES //set the length of the list as a precaution θ→⸤NIBBLES(1+dim(⸤NIBBLES //add our score to the end of the list SortD(⸤NIBBLES //sort the list in descending order length(⸤NIBBLES)-1→dim(⸤NIBBLES //remove the lowest value on the list SetUpEditor //Reset the list editor

]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3771021Highscore Top 10 listhttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3771021
Mon, 16 Apr 2018 15:20:34 +0000Bio_Hazard12823338172
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!
]]>
http://tibasicdev.wikidot.com/forum/t-847251#post-3751635ABOUT NIBBLEShttp://tibasicdev.wikidot.com/forum/t-847251/nibbles#post-3751635
Wed, 28 Mar 2018 00:42:55 +0000Trenly1905506
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

Helpful tips for if you are not using the download:

You can find ∆X and ∆Y in Vars-> Window…-> 8 and 9

Xmin, Xmax, Ymin, and Ymax are the window variables, located at [VARS][ENTER].

If you change a variable because you use it for a highscore in one of your programs, be sure to change it every time it appears in the code

If you don't believe the code works, watch the video below. It shows copying the source code, and running it. All without ever downloading the file.