Module Expr Str Assign NameStore Str Import alias alias alias alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return ListLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Str orelse Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Str orelse Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Describes the tiles in the world space. N/A __author__ Phillip Johnson N/A items enemies actions world MapTile N/A N/A N/A The base class for a tile within the world space __init__ N/A N/A self x y N/A N/A N/A Creates a new tile.

        :param x: the x-coordinate of the tile
        :param y: the y-coordinate of the tile
         N/A N/A self x x N/A N/A self y y N/A intro_text N/A N/A self N/A N/A N/A Information to be displayed when the player moves into this tile. N/A N/A NotImplementedError N/A modify_player N/A N/A self the_player N/A N/A N/A Process actions that change the state of the player. N/A N/A NotImplementedError N/A adjacent_moves N/A N/A self N/A N/A N/A Returns all move actions for adjacent tiles. N/A moves N/A N/A N/A N/A world tile_exists N/A N/A self x 1 N/A self y N/A N/A N/A N/A moves append N/A N/A actions MoveEast N/A N/A N/A world tile_exists N/A N/A self x 1 N/A self y N/A N/A N/A N/A moves append N/A N/A actions MoveWest N/A N/A N/A world tile_exists N/A self x N/A N/A self y 1 N/A N/A N/A N/A moves append N/A N/A actions MoveNorth N/A N/A N/A world tile_exists N/A self x N/A N/A self y 1 N/A N/A N/A N/A moves append N/A N/A actions MoveSouth N/A moves N/A available_actions N/A N/A self N/A N/A N/A Returns all of the available actions in this room. N/A moves N/A N/A self adjacent_moves N/A N/A N/A moves append N/A N/A actions ViewInventory N/A moves N/A N/A StartingRoom N/A MapTile N/A intro_text N/A N/A self N/A N/A N/A 
        You find yourself in a cave with a flickering torch on the wall.
        You can make out four paths, each equally as dark and foreboding.
         N/A modify_player N/A N/A self the_player N/A N/A N/A N/A N/A EmptyCavePath N/A MapTile N/A intro_text N/A N/A self N/A N/A N/A 
        Another unremarkable part of the cave. You must forge onwards.
         N/A modify_player N/A N/A self the_player N/A N/A N/A N/A N/A LootRoom N/A MapTile N/A N/A A room that adds something to the player's inventory __init__ N/A N/A self x y item N/A N/A N/A N/A self item item N/A N/A N/A N/A super __init__ x y N/A add_loot N/A N/A self the_player N/A N/A N/A N/A N/A N/A the_player inventory append N/A self item N/A modify_player N/A N/A self the_player N/A N/A N/A N/A N/A self add_loot the_player N/A N/A FindDaggerRoom N/A LootRoom N/A __init__ N/A N/A self x y N/A N/A N/A N/A N/A N/A super __init__ x y N/A N/A items Dagger N/A intro_text N/A N/A self N/A N/A N/A 
        You notice something shiny in the corner.
        It's a dagger! You pick it up.
         N/A N/A Find5GoldRoom N/A LootRoom N/A __init__ N/A N/A self x y N/A N/A N/A N/A N/A N/A super __init__ x y N/A N/A items Gold 5 N/A intro_text N/A N/A self N/A N/A N/A 
        Someone dropped a 5 gold piece. You pick it up.
         N/A N/A EnemyRoom N/A MapTile N/A __init__ N/A N/A self x y enemy N/A N/A N/A N/A self enemy enemy N/A N/A N/A N/A super __init__ x y N/A modify_player N/A N/A self the_player N/A N/A N/A N/A N/A N/A self enemy is_alive N/A N/A N/A the_player hp N/A N/A the_player hp N/A N/A self enemy damage N/A N/A N/A Enemy does {} damage. You have {} HP remaining. format N/A N/A self enemy damage N/A the_player hp N/A available_actions N/A N/A self N/A N/A N/A N/A N/A N/A self enemy is_alive N/A N/A N/A N/A N/A actions Flee tile self N/A N/A actions Attack enemy N/A self enemy N/A N/A N/A N/A self adjacent_moves N/A N/A GiantSpiderRoom N/A EnemyRoom N/A __init__ N/A N/A self x y N/A N/A N/A N/A N/A N/A super __init__ x y N/A N/A enemies GiantSpider N/A intro_text N/A N/A self N/A N/A N/A N/A N/A N/A self enemy is_alive N/A N/A 
            A giant spider jumps down from its web in front of you!
             N/A N/A 
            The corpse of a dead spider rots on the ground.
             N/A N/A OgreRoom N/A EnemyRoom N/A __init__ N/A N/A self x y N/A N/A N/A N/A N/A N/A super __init__ x y N/A N/A enemies Ogre N/A intro_text N/A N/A self N/A N/A N/A N/A N/A N/A self enemy is_alive N/A N/A 
            An ogre is blocking your path!
             N/A N/A 
            A dead ogre reminds you of your triumph.
             N/A N/A SnakePitRoom N/A MapTile N/A intro_text N/A N/A self N/A N/A N/A 
        You have fallen into a pit of deadly snakes!

        You have died!
         N/A modify_player N/A N/A self player N/A N/A N/A N/A player hp 0 N/A N/A LeaveCaveRoom N/A MapTile N/A intro_text N/A N/A self N/A N/A N/A 
        You see a bright light in the distance...
        ... it grows as you get closer! It's sunlight!


        Victory is yours!
         N/A modify_player N/A N/A self player N/A N/A N/A N/A player victory True N/A N/A