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

Turtles should be able to code other computers / turtles.

Started by Antelux, 25 December 2012 - 12:33 PM
Antelux #1
Posted 25 December 2012 - 01:33 PM
I think it would be cool if a turtle could program other computers / turtles. This could be used in some type of turtle interaction program where turtles can adopt and program themselves.

Functions:
term.code(side, program name, code)
term.removeCode(side, program name)
term.renameCode(side, old name, new name)
term.editCode(side, program name, line number, code)
term.checkColor(side)
term.checkRednet(side)
term.checkPrinter(side)
term.checkDiskdrive(side)
term.checkDisk(side)
term.checkMonitor(side)
term.checkMonitorColor(side)
Luanub #2
Posted 25 December 2012 - 01:38 PM
You can already do this by using a disk and a drive. Have the turtle place the computer/turtle that it wants to put the code onto next to the drive and have a startup file on the disk that copies the program.
Cloudy #3
Posted 25 December 2012 - 09:12 PM
Exactly. Closed.