PLAY_WIN = False N = 1 WIN = False DEAD = False GAMES_PLAYED = 0 GAMES_WON = 0 GAMES_LOST = 0 BEST_TIME = None #while there's game to play ai = AI(DEBUG) while N > 0: t0 = time() ai.dead = False ai.board_info() #only activated if in debug mode if DEBUG: wait() first_guesses = True while not (WIN or DEAD): if first_guesses: #verifies there's no possible target ai.nextTarget(False) if DEBUG: wait()