- number: int
- __init__(min, max): None
- __eq__(obj): boolean
- __lt__(obj): boolean
- __gt__(obj): boolean
- min_card: int
- max_card: int
- ask_h_or_l_func: function
- right_guess_func: function
- wrong_guess_func: function
- same_number_func: function
- __init__(min_card, max_card, ask_h_or_l, right_guess, wrong_guess, same_number): None
- next_play(): None
Main | Director | Card | ||
---|---|---|---|---|
next_play() | Card(min,max) | __init__(min,max) | ||
Card(min_max) | __init__(min,max) | |||
input('Higher or lower?') | ask_h_or_l() | |||
__lt__(), __eq__(), __gt__() | ||||
score += POINTS | right_guess(), wrong_guess() | |||
input('Play again?') |