This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Spongy141's profile picture

SmartTurtle Updated to v0.6

Started by Spongy141, 14 April 2013 - 01:29 PM
Spongy141 #1
Posted 14 April 2013 - 03:29 PM
SmartTurtle
Well about a couple of weeks ago I started making my turtles be "Smart" (To me there still dumb) well if you look at my code you can tell I barely worked on it, but I thought I might as well just release it for some feed back. Please keep the feed back positive.

I've updated this to v0.5, now the turtle isn't so dumb anymore! Also it doesn't get stuck as much!
Added features and removed features.
SpoilerAdded
  1. The turtle now compares left, right, and forward!
  2. WIP, New 0 for unlimited movement!
  3. Turtle now has to favorite either left or right, no option to do so now, it favors right until I add a config file.
Removed
  1. Turtle going up and down.
  2. The old and stupid block detetion function I had.
  3. The goBack function, it was un-needed since I forgot there is turtle.back().
Screen Shots
SpoilerScreen shots will be posted later!


Links
Link* to SmartTurtle in pastebin.
I didn't feel like making it downloadable YET, when I get around to it will be downloadable.

Now I do not care what you do with my program, as long as you do not clam it as yours, its open source, fill free to modify it in anyway, just make sure not to take full credit.
Note: This project will be abandoned if no one reply's or give's feedback, to me no feedback means no one likes it.
H4X0RZ #2
Posted 14 April 2013 - 03:51 PM
Cool Idea but I have an Idea too ^^

The Turtle select all slots (1-16) check if fuel is in the slot an then refuels (or goes to the next slot, and restart the refuiling try)

please correct my english, beceause i know it's not the best because english isn't my nativ language, and I still learn English (In the moment I learn how the past progressive works) ^^
Spongy141 #3
Posted 14 April 2013 - 04:07 PM
The reason I have the fuel slot set to 16, is because the final program will be able to build a shape, and or mine to make that shape, so it will need those extra slots for its building supplies.
But thanks for the feed back.
H4X0RZ #4
Posted 14 April 2013 - 04:15 PM
The reason I have the fuel slot set to 16, is because the final program will be able to build a shape, and or mine to make that shape, so it will need those extra slots for its building supplies.
But thanks for the feed back.
Oh, okay.
Against that, I can see that you are a pro (Not anybody can program a shape building Turtle) ^_^/>
Spongy141 #5
Posted 14 April 2013 - 04:20 PM
Lol I wouldn't call myself a "Pro", but thanks. Also its kinda hard, but also kinda easy to get a turtle to build a shape, it just requires a lot of lines, since I'm going to have to let the user choose from at least 4 different shapes.
cogilv25 #6
Posted 15 April 2013 - 02:17 PM
How about scanning a previously made shape into internal memory then building it again and again that would be impressive would do it myself but don't think I have enough experience yet :)/>

as for detecting back make a function that turns then detects :)/> called detectBack()
Spongy141 #7
Posted 16 April 2013 - 06:07 PM
Hmm… scanning a shape… I don't think you can, since turtles are blind, well I could save the values of the shape though.
cogilv25 #8
Posted 17 April 2013 - 03:10 AM
Hmm… scanning a shape… I don't think you can, since turtles are blind, well I could save the values of the shape though.

That is what I mean store a 3D array in the turtles memory which can store the shape although it would have to calculate some blocks based off lengths and heights etc.
Spongy141 #9
Posted 17 April 2013 - 03:41 AM
^
Maybe in a future update, I will work on that a little, but for now (when the option to build shapes comes out) it will save the variables for the chosen shape then let you choose a saved shape.
cogilv25 #10
Posted 21 April 2013 - 11:47 AM
Yes I knew it would not be in the near future :)/> just trying to give you some ideas and possibly something to aim for in the future :)/>
Spongy141 #11
Posted 19 May 2013 - 03:49 PM
Yes I knew it would not be in the near future :)/> just trying to give you some ideas and possibly something to aim for in the future :)/>
I'll start working on that, tbh I haven't worked on it at all lately, but based on the amount of views on this topic on on the pastebin link, it seems people like it, so I will start working on it again
EDIT: I didn't start working on it, sorry, though I'm really am going to start on it now.
Spongy141 #12
Posted 07 June 2013 - 06:20 PM
Updated to v0.5… I rewrote the detection function, so it actually is smarter now :)/> (Than before)