Module Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias Assign NameStore Dict Str Str Str Str TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body While NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Break decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Str Assign SubscriptStore NameLoad Index TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIn NameLoad NameLoad CompareLt BinOpAdd Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num CompareLt BinOpAdd Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse If BoolOpOr UnaryOpNot BoolOpAnd CompareLtELt Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num AttributeLoad NameLoad attr CompareLtELt Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num AttributeLoad NameLoad attr CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Slice Num body Return NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Lambda arguments args defaults BinOpDiv Num NameLoad With Call NameLoad NameStore body With Call NameLoad NameStore body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr While NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num BinOpSub NameLoad BinOpAdd NameLoad Call NameLoad If CompareEq NameLoad Str body Return orelse If CompareEq NameLoad Str body AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Num BinOpSub NameLoad Num orelse If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If CompareLt Call NameLoad BinOpSub NameLoad NameLoad body Break If Call AttributeLoad NameLoad attr NameLoad body Return Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A itertools N/A random N/A time curtsies FullscreenWindow Input FSArray curtsies.fmtfuncs red bold green on_blue yellow on_red N/A key_directions N/A <UP> <LEFT> <DOWN> <RIGHT> N/A -1 0 N/A 0 -1 N/A 1 0 N/A 0 1 Snake N/A object N/A __init__ N/A N/A self height width N/A N/A N/A N/A self height height N/A N/A self width width N/A N/A self snake_parts N/A N/A N/A self random_spot N/A N/A self direction N/A 1 0 N/A N/A N/A self new_apple N/A random_spot N/A N/A self N/A N/A N/A N/A N/A N/A random choice N/A range N/A self height N/A N/A random choice N/A range N/A self width N/A new_apple N/A N/A self N/A N/A N/A True N/A N/A N/A self apple N/A N/A self random_spot N/A N/A N/A self apple N/A self snake_parts N/A N/A N/A advance_snake N/A N/A self N/A N/A N/A N/A N/A N/A self snake_parts insert 0 N/A N/A N/A N/A N/A self snake_parts N/A 0 N/A 0 N/A N/A self direction N/A 0 N/A N/A N/A N/A self snake_parts N/A 0 N/A 1 N/A N/A self direction N/A 1 N/A render N/A N/A self N/A N/A N/A a N/A FSArray N/A self height N/A self width N/A N/A row col N/A self snake_parts N/A N/A N/A a N/A N/A row col x N/A N/A a N/A N/A N/A N/A self apple N/A 0 N/A N/A self apple N/A 1 o N/A a N/A tick N/A N/A self e N/A N/A N/A N/A N/A e key_directions N/A N/A N/A abs N/A N/A key_directions N/A e N/A 0 N/A abs N/A N/A self direction N/A 0 2 N/A N/A N/A abs N/A N/A key_directions N/A e N/A 1 N/A abs N/A N/A self direction N/A 1 2 N/A N/A N/A self direction N/A key_directions N/A e N/A N/A N/A self advance_snake N/A N/A N/A N/A self snake_parts N/A 0 N/A self apple N/A N/A N/A N/A self new_apple N/A N/A N/A N/A N/A N/A 0 N/A N/A N/A self snake_parts N/A 0 N/A 0 N/A self height N/A 0 N/A N/A N/A self snake_parts N/A 0 N/A 1 N/A self width N/A N/A N/A self snake_parts N/A 0 N/A N/A self snake_parts N/A 1 N/A N/A True N/A N/A N/A N/A N/A self snake_parts pop N/A N/A main N/A N/A N/A N/A N/A MAX_FPS 20 N/A time_per_frame N/A N/A N/A N/A N/A 1.0 MAX_FPS N/A N/A FullscreenWindow window N/A N/A N/A Input input_generator N/A N/A snake N/A Snake N/A window height N/A window width N/A True N/A N/A c None N/A t0 N/A N/A time time N/A True N/A N/A t N/A N/A time time N/A temp_c N/A N/A input_generator send N/A max 0 N/A t N/A t0 N/A time_per_frame N/A N/A temp_c <ESC> N/A N/A N/A N/A N/A temp_c + N/A N/A MAX_FPS 1 N/A N/A N/A temp_c - N/A N/A MAX_FPS N/A max 1 N/A MAX_FPS 1 N/A N/A N/A temp_c None N/A N/A c temp_c N/A N/A N/A time_per_frame N/A t t0 N/A N/A N/A N/A N/A snake tick c N/A N/A N/A N/A N/A window render_to_terminal N/A N/A snake render N/A N/A N/A __name__ __main__ N/A N/A N/A main