# Text based game template
# Has two rooms a player can move between

# Global Variables
# Define variables here for player and game data - e.g. player health or an inventory


# Misc Functions
def playerAction():
    return input("What do you do: ").lower()


# Rooms

def startRoom():
    # Room Content
    # Players need to know what they can do in each room.
    print("This is the first room.") 

    # Player Actions
    action = playerAction()
    
    if action == "go south":
        secondRoom()
    # Insert other actions a player can take here, in lowercase

    else:
        print("You can't do that.")
    startRoom() 


def secondRoom():
    # Room Content
    print("This is the second room")


    # Player Actions
    action = playerAction()

    if action == "go north":
        startRoom()
    # Insert other actions a player can take here

    else:
        print("You can't do that.")
    secondRoom()


# Run Program by calling the start room
startRoom()