> cat /wizhelp/wizcoding1
> _
======================================================================== Wizard Coding 1: Your First Room ======================================================================== Let's create your first custom room! STEP 1: NAVIGATE TO YOUR DIRECTORY cd # Go to your home pwd # Verify location mkdir tutorial # Create tutorial folder cd tutorial # Enter folder STEP 2: CREATE THE ROOM FILE ed my_first_room.py STEP 3: ENTER THE CODE Type a to append, then enter: ```python from lib.models.entity import Room, DescriptionItem def load(): """Load my first custom room.""" room = Room( name="yourname_first_room", description="""This is your first custom room! The walls shimmer with magical energy, and you feel a sense of accomplishment filling the air.""", short_description="Your First Room" ) # Add something to examine room.description_items = [ DescriptionItem( name="walls", aliases=["wall", "energy"], description="The walls pulse with creative magic!" ) ] return room ``` Type . to exit input mode Type wq to save and quit STEP 4: TEST YOUR ROOM goto yourname_first_room COMMON ERRORS: - Forgot def load() - Wrong indentation (use 4 spaces) - Missing imports - Room name not unique ========================================================================
> _