``` if pokeballs = 0: farm pokestops until pokeballs >= [some number] then continue hunting ```