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

Turtle Random Movement Generator

Started by Agent Silence, 06 May 2014 - 09:46 PM
Agent Silence #1
Posted 06 May 2014 - 11:46 PM
I got seriously bored so I created this simple program for turtles. Simply place them in the world somewhere and watch then run around like complete retards. It is pretty fun.
How to install :
1. Place down a turtle
2. Type 'pastebin get 9qgYNxBk startup'
3. Put fuel in the first slot of the turtle.
4. Type 'reboot'
5. Enjoy!
Edited on 06 May 2014 - 09:46 PM
Agoldfish #2
Posted 06 May 2014 - 11:51 PM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
Agent Silence #3
Posted 06 May 2014 - 11:57 PM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
Agoldfish #4
Posted 07 May 2014 - 12:01 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
Agent Silence #5
Posted 07 May 2014 - 12:10 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
Hmm, it might be caused by the RNG constantly generating 4
Try redownloading it.
cptdeath58 #6
Posted 07 May 2014 - 12:12 AM
True.
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
True because it didn't know it was down there and it will try to ram it until it is terminated
Agoldfish #7
Posted 07 May 2014 - 12:26 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
Hmm, it might be caused by the RNG constantly generating 4
Try redownloading it.
Or.. Or… Just fix the code.
cptdeath58 #8
Posted 07 May 2014 - 12:36 AM
That works.
Bomb Bloke #9
Posted 07 May 2014 - 01:11 AM
Or.. Or… Just fix the code.

And how might you receive that fix, hmm?

I have a feeling I missed a perfectly good XKCD reference.
Agent Silence #10
Posted 07 May 2014 - 01:52 AM
Works fine now.
It wasn't constantly ramming the ground, I just made a rookie mistake and forgot to put sleep(0.5) so it was running too many things at once.
Edited on 07 May 2014 - 12:03 AM
Agoldfish #11
Posted 07 May 2014 - 02:51 PM
Here is an update so if it wants to go down with a block below it it won't get stuck.