<s> """<STR_LIT>""" <EOL> from random import randint <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import os <EOL> import sys <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . getcwd ( ) , "<STR_LIT>" ) ) <EOL> import easygui_qt as eg <EOL> else : <EOL> import easygui_qt as eg <EOL> def guessing_game ( ) : <EOL> name = eg . get_string ( message = "<STR_LIT>" , <EOL> title = "<STR_LIT>" ) <EOL> if not name : <EOL> name = "<STR_LIT>" <EOL> message = """<STR_LIT>""" <EOL> eg . show_message ( message = message , title = "<STR_LIT>" ) <EOL> eg . get_language ( ) <EOL> eg . show_message ( message = "<STR_LIT>" . format ( name ) , <EOL> title = "<STR_LIT>" ) <EOL> guess = min_ = <NUM_LIT:1> <EOL> max_ = <NUM_LIT:50> <EOL> answer = randint ( min_ , max_ ) <EOL> title = "<STR_LIT>" <EOL> while guess != answer : <EOL> message = "<STR_LIT>" . format ( min_ , max_ ) <EOL> prev_guess = guess <EOL> guess = eg . get_int ( message = message , title = title , <EOL> default_value = guess , min_ = min_ , max_ = max_ ) <EOL> if guess is None : <EOL> quitting = eg . get_yes_or_no ( "<STR_LIT>" ) <EOL> guess = prev_guess <EOL> if quitting : <EOL> break <EOL> elif guess < answer : <EOL> title = "<STR_LIT>" <EOL> min_ = guess <EOL> elif guess > answer : <EOL> title = "<STR_LIT>" <EOL> max_ = guess <EOL> else : <EOL> message = "<STR_LIT>" . format ( name , guess ) <EOL> eg . show_message ( message , title = "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> eg . show_message ( "<STR_LIT>" ) <EOL> eg . set_language ( '<STR_LIT>' ) <EOL> eg . show_message ( "<STR_LIT>" ) <EOL> eg . set_font_size ( <NUM_LIT> ) <EOL> guessing_game ( ) <EOL> eg . set_font_size ( <NUM_LIT:12> ) <EOL> eg . show_message ( "<STR_LIT>" ) </s>
