def main(): game = Game(create(), debug=True, idle_time=45) common.handle_common_interruption(game, False) game.addAction(ok_invite) game.addAction(begin) game.idle = idle game.start()
def main(): game = Game(create(), idle_time=3) game.addAction(task) game.addAction(buy) for image in ['use', 'submit', 'ok']: game.addAction(SimpleAction(image)) game.idle = lambda g: g.click(ACTION) game.start()
def main(): game = Game(create()) game.addAction(SimpleAction(['task', 'ghost', 'ghost'])) game.addAction(SimpleAction(['ok', 'cancel'])) for image in LOGIN: game.addAction(SimpleAction(image)) game.idle = lambda g: g.click('ghost') game.start()
def main(): game = Game(create(), idle_time=20, debug=True) common.handle_common_interruption(game) game.addAction(SimpleAction('ok')) game.addAction(common.finish(False)) game.addAction(fight) game.addAction(box) game.addAction(SimpleAction('boss')) game.addAction(isfighting) game.idle = move game.start()
def main(): device = (Builder().with_device(AdbDevice) .with_limit(1) # one action per second .with_blur(5) # random change click point .build()) game = Game(device) game.addAction(choose) game.addAction(guaji_if_no_money) game.addAction(buy) for image in COMMON: game.addAction(SimpleAction(image)) game.idle = lambda g: g.click('huan') game.start()
def main(): game = Game(create(rate_limit=2, blur=0.005), debug=True) game.addAction(ok_accept) common.handle_common_interruption(game, False) game.idle = double_yuhun game.start()