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

Request for a professional opinion

Started by tompy97, 01 May 2013 - 01:40 AM
tompy97 #1
Posted 01 May 2013 - 03:40 AM
Hi, I am fairly new to lua and am 100% self taught so I am undoubtedly teaching myself bad habits. I have written a short script that allows a turtle to sort items placed in slot[1]. I am pretty proud of the program and it seems to be running well at the moment, but I would like a second opinion or two, especially regarding ways that I can optimize the code. And please, if I am making big errors or doing things improperly, let me know, Its the only way i'll learn!

code: pastebin.com/yM8sveX6
PixelToast #2
Posted 01 May 2013 - 11:10 AM
cant really make it more efficicent
but you can get a peripheral like the CCC or the inventory turtle making sorting much much faster