Module Import alias Import alias alias Assign NameStore Str ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareGt AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Print TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Print Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareGt AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Print Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse Print Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list
N/A N/A random N/A items world N/A __author__ Phillip Johnson Player N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self inventory N/A N/A N/A items Gold 15 N/A N/A items Rock N/A N/A self hp 100 N/A N/A N/A self location_x N/A self location_y N/A world starting_position N/A N/A self victory False N/A is_alive N/A N/A self N/A N/A N/A N/A N/A self hp 0 N/A do_action N/A N/A self action N/A kwargs N/A N/A action_method N/A getattr self N/A N/A action method __name__ N/A action_method N/A N/A N/A action_method kwargs N/A print_inventory N/A N/A self N/A N/A N/A item N/A self inventory N/A N/A N/A item N/A move N/A N/A self dx dy N/A N/A N/A N/A self location_x dx N/A N/A self location_y dy N/A N/A N/A N/A N/A world tile_exists N/A self location_x N/A self location_y intro_text N/A move_north N/A N/A self N/A N/A N/A N/A N/A self move dx 0 dy -1 N/A move_south N/A N/A self N/A N/A N/A N/A N/A self move dx 0 dy 1 N/A move_east N/A N/A self N/A N/A N/A N/A N/A self move dx 1 dy 0 N/A move_west N/A N/A self N/A N/A N/A N/A N/A self move dx -1 dy 0 N/A attack N/A N/A self enemy N/A N/A N/A best_weapon None N/A max_dmg 0 N/A i N/A self inventory N/A N/A N/A isinstance i N/A items Weapon N/A N/A N/A N/A i damage max_dmg N/A N/A max_dmg N/A i damage N/A best_weapon i N/A N/A N/A You use {} against {}! format N/A best_weapon name N/A enemy name N/A N/A enemy hp N/A best_weapon damage N/A N/A N/A N/A enemy is_alive N/A N/A N/A N/A You killed {}! format N/A enemy name N/A N/A N/A N/A {} HP is {}. format N/A enemy name N/A enemy hp N/A flee N/A N/A self tile N/A N/A N/A Moves the player randomly to an adjacent tile N/A available_moves N/A N/A tile adjacent_moves N/A r N/A N/A random randint 0 N/A N/A len available_moves 1 N/A N/A N/A self do_action N/A available_moves N/A r N/A N/A