Hey, cool you may have found
Hey, cool you may have found an easter egg in my code
No⦠the way it works is that I am playing around, and sometimes I make something that I figure others would have interest in. Then I try to strip it down to the essentials, omit all irelevant parts etc⦠and then go public with it.
Aparently there was some left over with this variable, some function that I wanted to delete but not got rid of 100%⦠but you can just omit it.
Actually you should be proud of yourself, as I think perhaps some 50 other people, at least have downloaded and used the code⦠and you are the first one to realize this
----- UPDATE
Now I had a look at the code, and what you say? There is plenty of use of the variable. The only thing wrong, as I see it just now is that it may overflow at some points⦠But it should not matter for the function of it.
As I read it (though I may be wrong) it is a variable used in a set of rules that ensures that the robot does not start spinning around for ever if it is placed in an open space.
You see, many beginners robots only avoid obstacles, but the robot using this code will also be curious, and find doorways etc. And so if āeverything looks interestingā for it, it should not go crazy, but take a dessicion⦠and that is a part of what that variable should do.
However, Try to omit it everywhere, it will be a cool way to learn.
Just write ā before every line / routine it is used in, and see what happens.
Try to see how much of the code you can omit and still get a working robot! That will be a great way to see what the parts does, and how
Ā