Posted 18 July 2015 - 03:21 AM
I need help with the program found here: http://pastebin.com/1zbm4L4p
Hello ComputerCraft forums! My friend and I are new to ComputerCraft, and we made a simple calculator together. We then wanted to add the functionality for it to repeat again and again without calling the script again and again, however it seems that we have reached found a few bugs. Whenever we try to exit the program by typing in "e" or "E" or "End" or "end", the program just continues normally, We also found another bug where typing in a value for the variable "operation" that is not included in the calculation switch allows the program to continue normally, instead of printing the text "Try again" and restarting from the beginning of the loop. Finally, we discovered a huge bug that basically ruined our program, we can't perform any operations at all! Whenever we try, we get an error.
Thank you all for putting up with novice programmers like ourselves, and your feedback on how to fix our program would be much appreciated.
TL;DR - Our code sucks, help please <3
Hello ComputerCraft forums! My friend and I are new to ComputerCraft, and we made a simple calculator together. We then wanted to add the functionality for it to repeat again and again without calling the script again and again, however it seems that we have reached found a few bugs. Whenever we try to exit the program by typing in "e" or "E" or "End" or "end", the program just continues normally, We also found another bug where typing in a value for the variable "operation" that is not included in the calculation switch allows the program to continue normally, instead of printing the text "Try again" and restarting from the beginning of the loop. Finally, we discovered a huge bug that basically ruined our program, we can't perform any operations at all! Whenever we try, we get an error.
Thank you all for putting up with novice programmers like ourselves, and your feedback on how to fix our program would be much appreciated.
TL;DR - Our code sucks, help please <3
Edited on 18 July 2015 - 01:39 AM