File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,12 @@ def click_first(btns_pos, search_img):
293
293
294
294
if click_first (buttons_position , search_img ):
295
295
n_ships += 1
296
- start_time = time .time ()
297
- while not Ship .check_number_of_ships (Image .screen (), n_ships ):
298
- if time .time () - start_time > 15 :
299
- if not Ship .check_number_of_ships (Image .screen (), n_ships ):
300
- raise Exception (f"Error trying to send { n_ships } ships to fight." )
296
+ time .sleep (0.5 )
297
+ # start_time = time.time()
298
+ # while not Ship.check_number_of_ships(Image.screen(), n_ships):
299
+ # if time.time() - start_time > 15:
300
+ # if not Ship.check_number_of_ships(Image.screen(), n_ships):
301
+ # raise Exception(f"Error trying to send {n_ships} ships to fight.")
301
302
else :
302
303
Ship .scroll_ships ()
303
304
scroll_times += 1
You can’t perform that action at this time.
0 commit comments