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

complex program gives varied results

Started by HDeffo, 03 March 2016 - 06:55 PM
HDeffo #1
Posted 03 March 2016 - 07:55 PM
I am currently writing an arena of sorts where two program pit against each other head to head. The program currently works perfectly about 50% of the time. 25% of the time when a program tries to delete the other one the other program fails to stop running. and the last 25% of the time calling fs.rem(block) results in stating there is a program there and passing it to the daemon API the program runs on despite the fact that the value is a nill and it passes a nil breaking the program.

Program

Api
HDeffo #2
Posted 03 March 2016 - 08:30 PM
The programs continuing to run was caused by the programs deleting themselves. Still haven't found the cause for the other bug though