Question #176949 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176949
RaiMan posted a new comment: Uuups, many lines of code, that hide the logic behind it. as far as I understand, this is the basic structure: while True: next_box = something_to_do() if not next_box: break # this will end the loop if message_you_are_full(): go_to_bank_and_come_back() farm_next_box(next_box) to make this clean, compact and manageable we use functions: (which is called modular programming) (these functions have to be put at the beginning of the script before the while) def something_to_do(): pass # return the next box to work on # your C and 1 ... 10 # else return None, which ends the whole process def message_you_are_full(): pass # check for message # return True if there # False otherwise def go_to_bank_and_come_back(): pass # the long way to bank and back def farm_next_box(net_box): pass # farm on next_box -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp