I need a timer that shows the total elapsed time it took for the user to complete the game. I'm running Python 3.2, pyscripter 2.5.3. I'm using "timer.timer" but I'm having trouble. I want the timer to reset when the user inputs "reset", but still keep a running total in the background. I also want the program to print the time. Thank you so much. Here is my code.

#used to pause the program ie.. time.sleep(enter in seconds)
import time

import random

#variables
board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
riddle = ['What gets wet when drying?', 'What color is the sky',
         'What is binded when it walks, and loosened when it stops?',
         'What belongs to you, but others use it more?',
         'What is put on a table, cut, but never eaten?']
answer = ['towel', 'blue', 'sandals', 'name', 'cards']
answer1= ['Towel', 'Blue', 'Sandals', 'Name', 'Cards']
answer2= ['a towel', 'blue', 'sandals', 'my name', 'a deck of cards']
true = ('1')
false = ('0')

#This defines the cycle and riddle functions.
def cycle(b):
    global riddle
    global answer
    riddle.append(riddle[0])
    answer.append(answer[0])
    answer1.append(answer1[0])
    asnwer2.append(answer2[0])
    riddle.remove(riddle[0])
    answer.remove(answer[0])
    answer1.remove(answer1[0])
    answer2.remove(answer2[0])
    return '0'

def riddle_er(b):
    global riddle
    global answer
    cycle('a')
    print(riddle[0])
    user_answer = input()
    if user_answer == answer[0] or user_answer == answer1[0] or user_answer == answer2[0]:
        return true
    elif user_answer != answer[0] or user_answer != answer1[0] or user_answer != answer2[0]:
        return false

#defines the Reset function
def Reset():
    global board
    board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
    print(' ')
    print(' ')
    print(' ')
    print('Try again!')
    return(print_map())

#defines the quit program function
def Quit():
    print('Good bye!')
    time.sleep(1)
    global loop
    loop=('0')

#defines the print map function
def print_map():
    print ()
    print ()
    print(':=====================:',board[28],':')
    print('|',board[14],'    ',board[15],'    ',board[16],' ',board[17],'|   |')
    print(':   :===:=====:   :===:   :')
    print('|',board[13],' ',board[12],'|',board[18],board[19],'|',board[26],'     ',board[27],'|')
    print(':   :   :===:=======:=====:')
    print('|',board[25],'|',board[11],'|',board[5],' ',board[4],' ',board[24],'|',board[23],board[22],'|')
    print(':===:   :   :   :===:=:   :')
    print('|',board[8],'|   |',board[6],'|   |',board[20],'   ',board[21],'|')
    print(':   :   :   :   :   :=====:')
    print('|',board[9],' ',board[10],'|',board[7],'|',board[3],' ',board[2],'   ',board[1],'|')
    print(':=======:===:=========:   :')
    print('                       ',board[0],' ')
    #Note, 0-19 is the route to win.
#this next line prevents the program from returning a "none" statement.
    return('')

#Intro into the game.
print ("Welcome to the Wild Riddle Maze!!!")

user_input = (input("""
Enter E to start the game
OR press Enter to abort
"""))

#This is incase the user does not select E
loop=(user_input)
if loop != 'E':
    import time
    print ("""
                 ________                   ________
|    /\    |        |        |\        /|  |       |   |
|   /  \   |        |        | \      / |  |       |   |
|  /    \  |        |        |  \    /  |  |_______|   |
| /      \ |        |        |   \  /   |  |
|/        \|     ___|___     |    \/    |  |           O

Oh Well!!!

    """)
    time.sleep(1)

if loop == 'E':
    print ("The goal is to find the Legendary Cheese!")
    print ("Navigate the maze by using; north, south, east, or west.")
    print ("Type Q to QUIT or R to RESET the program")
    print ("Good Luck!!!!!")
    time.sleep(5)
    print_map()

#actual maze starts here
while loop=='E':

    if board[0] == 'x':
        userinput = (input('pick a direction: '))
        print ()
        if userinput == 'north' or userinput == 'n':
            board[1] = ('x')
            board[0] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()

        elif userinput == 'Q':
                Quit()
        else:
            print("Go into the maze...")

    if board[1] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[2] = ('x')
            board[1] = (' ')
            print_map()
        elif userinput == 'south':
            board[27] = ('x')
            board[1] = (' ')
            print_map()
            print(" ")
            print('WHAT?!? You found a "short cut!"')

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[2] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[3] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'north':
            board[20] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'east':
            board[1] = ('x')
            board[2] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[3] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[4] = ('x')
            board[3] = (' ')
            print_map()
        elif userinput == 'east':
            board[2] = ('x')
            board[3] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[4] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[24] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'west':
            board[5] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'south':
            board[3] = ('x')
            board[4] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[5] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[4] = ('x')
            board[5] = (' ')
            print_map()
        elif userinput == 'south':
            board[6] = ('x')
            board[5] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("try east or south...")

    if board[6] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[5] = ('x')
            board[6] = (' ')
            print_map()
        elif userinput == 'south':
            board[7] = ('x')
            board[6] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#first Warp point.
    if board[7] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[8] = ('x')
            board[7] = ('O')
            print_map()
        elif userinput == false:
            board[0] = ('x')
            board[7] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[8] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'south':
            board[9] = ('x')
            board[8] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("Please, go south...")

    if board[9] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[10] = ('x')
            board[9] = (' ')
            print_map()
        elif userinput == 'north':
            board[8] = ('x')
            board[9] = (' ')
            print_map()
            print("Our technolodgy is only capable of oneway warping...")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[10] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[11] = ('x')
            board[10] = (' ')
            print_map()
        elif userinput == 'west':
            board[9] = ('x')
            board[10] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[11] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[12] = ('x')
            board[11] = (' ')
            print_map()
        elif userinput == 'south':
            board[10] = ('x')
            board[11] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("please, go north...")

    if board[12] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[13] = ('x')
            board[12] = (' ')
            print_map()
        elif userinput == 'south':
            board[11] = ('x')
            board[12] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[13] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[14] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'east':
            board[12] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'south':
            board[25] = ('x')
            board[13] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[14] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[15] = ('x')
            board[14] = (' ')
            print_map()
        elif userinput == 'south':
            board[13] = ('x')
            board[14] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[15] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[16] = ('x')
            board[15] = (' ')
            print_map()
        elif userinput == 'west':
            board[14] = ('x')
            board[15] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[16] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[17] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'west':
            board[15] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'south':
            board[26] = ('x')
            board[16] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second Warp point.
    if board[17] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[18] = ('x')
            board[17] = ('O')
            print_map()
        elif userinput == false:
            board[8] = ('x')
            board[17] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[18] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[19] = ('x')
            board[18] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("oh, come on!")

#This is the winning square, the cheese!
    if board[19] == 'x':
            print("Congradulations! The Legendary Cheese was not a lie!")
            print("Winner winner, fondue dinner!!!")
            userinput = (input('Type R for Reset or Q for Quit: '))
            if userinput == 'R':
                Reset()
            elif userinput == 'Q':
                Quit()

#first dead-end path
    if board[20] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[21] = ('x')
            board[20] = (' ')
            print_map()
        elif userinput == 'south':
            board[2] = ('x')
            board[20] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[21] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[22] = ('x')
            board[21] = (' ')
            print_map()
        elif userinput == 'west':
            board[20] = ('x')
            board[21] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[22] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[23] = ('x')
            board[22] = (' ')
            print_map()
            print('dead end...')
        elif userinput == 'south':
            board[21] = ('x')
            board[22] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[23] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[22] = ('x')
            board[23] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second dead end
    if board[24] == 'x':
        print('Wow... Just, wow')
        userinput = (input('pick a rational direction: '))
        if userinput == 'west':
            board[4] = ('x')
            board[24] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("just go ahead and push Q already...")

#Third Warp point.
    if board[25] == 'x':
        userinput = (riddle_er('a'))
        if userinput == true:
            board[8] = ('x')
            board[25] = ('O')
            print_map()
        elif userinput == false:
            board[23] = ('x')
            board[25] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

#false finish
    if board[26] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[27] = ('x')
            board[26] = (' ')
            print_map()
        elif userinput == 'north':
            print_map()
            print ("You can't quite see it on the map",
            "(we ran out of development funds)")
            print("but there was a 20-foot dropoff here that prevents you from")
            print("going backwords. Impressive, huh?")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[27] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[28] = ('x')
            board[27] = (' ')
            print_map()
        elif userinput == 'west':
            board[26] = ('x')
            board[27] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[28] == 'x':
        print_map()
        print(" ")
        print('Epic Fail!')
        print('You were told to find the Legendary Cheese,',
        'not the exit!')
        userinput = (input('Type R for Qeset or Q for Quit: '))
        if userinput == 'R':
            Reset()
        elif userinput == 'Q':
            Quit()
#used to pause the program ie.. time.sleep(enter in seconds)
import time

import random

#variables
board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
riddle = ['What gets wet when drying?', 'What color is the sky',
         'What is binded when it walks, and loosened when it stops?',
         'What belongs to you, but others use it more?',
         'What is put on a table, cut, but never eaten?']
answer = ['towel', 'blue', 'sandals', 'name', 'cards']
answer1= ['Towel', 'Blue', 'Sandals', 'Name', 'Cards']
answer2= ['a towel', 'blue', 'sandals', 'my name', 'a deck of cards']
true = ('1')
false = ('0')

#This defines the cycle and riddle functions.
def cycle(b):
    global riddle
    global answer
    riddle.append(riddle[0])
    answer.append(answer[0])
    answer1.append(answer1[0])
    asnwer2.append(answer2[0])
    riddle.remove(riddle[0])
    answer.remove(answer[0])
    answer1.remove(answer1[0])
    answer2.remove(answer2[0])
    return '0'

def riddle_er(b):
    global riddle
    global answer
    cycle('a')
    print(riddle[0])
    user_answer = input()
    if user_answer == answer[0] or user_answer == answer1[0] or user_answer == answer2[0]:
        return true
    elif user_answer != answer[0] or user_answer != answer1[0] or user_answer != answer2[0]:
        return false

#defines the Reset function
def Reset():
    global board
    board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
    print(' ')
    print(' ')
    print(' ')
    print('Try again!')
    return(print_map())

#defines the quit program function
def Quit():
    print('Good bye!')
    time.sleep(1)
    global loop
    loop=('0')

#defines the print map function
def print_map():
    print ()
    print ()
    print(':=====================:',board[28],':')
    print('|',board[14],'    ',board[15],'    ',board[16],' ',board[17],'|   |')
    print(':   :===:=====:   :===:   :')
    print('|',board[13],' ',board[12],'|',board[18],board[19],'|',board[26],'     ',board[27],'|')
    print(':   :   :===:=======:=====:')
    print('|',board[25],'|',board[11],'|',board[5],' ',board[4],' ',board[24],'|',board[23],board[22],'|')
    print(':===:   :   :   :===:=:   :')
    print('|',board[8],'|   |',board[6],'|   |',board[20],'   ',board[21],'|')
    print(':   :   :   :   :   :=====:')
    print('|',board[9],' ',board[10],'|',board[7],'|',board[3],' ',board[2],'   ',board[1],'|')
    print(':=======:===:=========:   :')
    print('                       ',board[0],' ')
    #Note, 0-19 is the route to win.
#this next line prevents the program from returning a "none" statement.
    return('')

#Intro into the game.
print ("Welcome to the Wild Riddle Maze!!!")

user_input = (input("""
Enter E to start the game
OR press Enter to abort
"""))

#This is incase the user does not select E
loop=(user_input)
if loop != 'E':
    import time
    print ("""
                 ________                   ________
|    /\    |        |        |\        /|  |       |   |
|   /  \   |        |        | \      / |  |       |   |
|  /    \  |        |        |  \    /  |  |_______|   |
| /      \ |        |        |   \  /   |  |
|/        \|     ___|___     |    \/    |  |           O

Oh Well!!!

    """)
    time.sleep(1)

if loop == 'E':
    print ("The goal is to find the Legendary Cheese!")
    print ("Navigate the maze by using; north, south, east, or west.")
    print ("Type Q to QUIT or R to RESET the program")
    print ("Good Luck!!!!!")
    time.sleep(5)
    print_map()

#actual maze starts here
while loop=='E':

    if board[0] == 'x':
        userinput = (input('pick a direction: '))
        print ()
        if userinput == 'north' or userinput == 'n':
            board[1] = ('x')
            board[0] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()

        elif userinput == 'Q':
                Quit()
        else:
            print("Go into the maze...")

    if board[1] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[2] = ('x')
            board[1] = (' ')
            print_map()
        elif userinput == 'south':
            board[27] = ('x')
            board[1] = (' ')
            print_map()
            print(" ")
            print('WHAT?!? You found a "short cut!"')

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[2] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[3] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'north':
            board[20] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'east':
            board[1] = ('x')
            board[2] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[3] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[4] = ('x')
            board[3] = (' ')
            print_map()
        elif userinput == 'east':
            board[2] = ('x')
            board[3] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[4] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[24] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'west':
            board[5] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'south':
            board[3] = ('x')
            board[4] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[5] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[4] = ('x')
            board[5] = (' ')
            print_map()
        elif userinput == 'south':
            board[6] = ('x')
            board[5] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("try east or south...")

    if board[6] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[5] = ('x')
            board[6] = (' ')
            print_map()
        elif userinput == 'south':
            board[7] = ('x')
            board[6] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#first Warp point.
    if board[7] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[8] = ('x')
            board[7] = ('O')
            print_map()
        elif userinput == false:
            board[0] = ('x')
            board[7] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[8] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'south':
            board[9] = ('x')
            board[8] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("Please, go south...")

    if board[9] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[10] = ('x')
            board[9] = (' ')
            print_map()
        elif userinput == 'north':
            board[8] = ('x')
            board[9] = (' ')
            print_map()
            print("Our technolodgy is only capable of oneway warping...")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[10] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[11] = ('x')
            board[10] = (' ')
            print_map()
        elif userinput == 'west':
            board[9] = ('x')
            board[10] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[11] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[12] = ('x')
            board[11] = (' ')
            print_map()
        elif userinput == 'south':
            board[10] = ('x')
            board[11] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("please, go north...")

    if board[12] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[13] = ('x')
            board[12] = (' ')
            print_map()
        elif userinput == 'south':
            board[11] = ('x')
            board[12] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[13] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[14] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'east':
            board[12] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'south':
            board[25] = ('x')
            board[13] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[14] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[15] = ('x')
            board[14] = (' ')
            print_map()
        elif userinput == 'south':
            board[13] = ('x')
            board[14] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[15] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[16] = ('x')
            board[15] = (' ')
            print_map()
        elif userinput == 'west':
            board[14] = ('x')
            board[15] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[16] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[17] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'west':
            board[15] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'south':
            board[26] = ('x')
            board[16] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second Warp point.
    if board[17] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[18] = ('x')
            board[17] = ('O')
            print_map()
        elif userinput == false:
            board[8] = ('x')
            board[17] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[18] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[19] = ('x')
            board[18] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("oh, come on!")

#This is the winning square, the cheese!
    if board[19] == 'x':
            print("Congradulations! The Legendary Cheese was not a lie!")
            print("Winner winner, fondue dinner!!!")
            userinput = (input('Type R for Reset or Q for Quit: '))
            if userinput == 'R':
                Reset()
            elif userinput == 'Q':
                Quit()

#first dead-end path
    if board[20] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[21] = ('x')
            board[20] = (' ')
            print_map()
        elif userinput == 'south':
            board[2] = ('x')
            board[20] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[21] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[22] = ('x')
            board[21] = (' ')
            print_map()
        elif userinput == 'west':
            board[20] = ('x')
            board[21] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[22] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[23] = ('x')
            board[22] = (' ')
            print_map()
            print('dead end...')
        elif userinput == 'south':
            board[21] = ('x')
            board[22] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[23] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[22] = ('x')
            board[23] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second dead end
    if board[24] == 'x':
        print('Wow... Just, wow')
        userinput = (input('pick a rational direction: '))
        if userinput == 'west':
            board[4] = ('x')
            board[24] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("just go ahead and push Q already...")

#Third Warp point.
    if board[25] == 'x':
        userinput = (riddle_er('a'))
        if userinput == true:
            board[8] = ('x')
            board[25] = ('O')
            print_map()
        elif userinput == false:
            board[23] = ('x')
            board[25] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

#false finish
    if board[26] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[27] = ('x')
            board[26] = (' ')
            print_map()
        elif userinput == 'north':
            print_map()
            print ("You can't quite see it on the map",
            "(we ran out of development funds)")
            print("but there was a 20-foot dropoff here that prevents you from")
            print("going backwords. Impressive, huh?")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[27] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[28] = ('x')
            board[27] = (' ')
            print_map()
        elif userinput == 'west':
            board[26] = ('x')
            board[27] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[28] == 'x':
        print_map()
        print(" ")
        print('Epic Fail!')
        print('You were told to find the Legendary Cheese,',
        'not the exit!')
        userinput = (input('Type R for Qeset or Q for Quit: '))
        if userinput == 'R':
            Reset()
        elif userinput == 'Q':
            Quit()
#used to pause the program ie.. time.sleep(enter in seconds)
import time

import random

#variables
board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
riddle = ['What gets wet when drying?', 'What color is the sky',
         'What is binded when it walks, and loosened when it stops?',
         'What belongs to you, but others use it more?',
         'What is put on a table, cut, but never eaten?']
answer = ['towel', 'blue', 'sandals', 'name', 'cards']
answer1= ['Towel', 'Blue', 'Sandals', 'Name', 'Cards']
answer2= ['a towel', 'blue', 'sandals', 'my name', 'a deck of cards']
true = ('1')
false = ('0')

#This defines the cycle and riddle functions.
def cycle(b):
    global riddle
    global answer
    riddle.append(riddle[0])
    answer.append(answer[0])
    answer1.append(answer1[0])
    asnwer2.append(answer2[0])
    riddle.remove(riddle[0])
    answer.remove(answer[0])
    answer1.remove(answer1[0])
    answer2.remove(answer2[0])
    return '0'

def riddle_er(b):
    global riddle
    global answer
    cycle('a')
    print(riddle[0])
    user_answer = input()
    if user_answer == answer[0] or user_answer == answer1[0] or user_answer == answer2[0]:
        return true
    elif user_answer != answer[0] or user_answer != answer1[0] or user_answer != answer2[0]:
        return false

#defines the Reset function
def Reset():
    global board
    board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
    print(' ')
    print(' ')
    print(' ')
    print('Try again!')
    return(print_map())

#defines the quit program function
def Quit():
    print('Good bye!')
    time.sleep(1)
    global loop
    loop=('0')

#defines the print map function
def print_map():
    print ()
    print ()
    print(':=====================:',board[28],':')
    print('|',board[14],'    ',board[15],'    ',board[16],' ',board[17],'|   |')
    print(':   :===:=====:   :===:   :')
    print('|',board[13],' ',board[12],'|',board[18],board[19],'|',board[26],'     ',board[27],'|')
    print(':   :   :===:=======:=====:')
    print('|',board[25],'|',board[11],'|',board[5],' ',board[4],' ',board[24],'|',board[23],board[22],'|')
    print(':===:   :   :   :===:=:   :')
    print('|',board[8],'|   |',board[6],'|   |',board[20],'   ',board[21],'|')
    print(':   :   :   :   :   :=====:')
    print('|',board[9],' ',board[10],'|',board[7],'|',board[3],' ',board[2],'   ',board[1],'|')
    print(':=======:===:=========:   :')
    print('                       ',board[0],' ')
    #Note, 0-19 is the route to win.
#this next line prevents the program from returning a "none" statement.
    return('')

#Intro into the game.
print ("Welcome to the Wild Riddle Maze!!!")

user_input = (input("""
Enter E to start the game
OR press Enter to abort
"""))

#This is incase the user does not select E
loop=(user_input)
if loop != 'E':
    import time
    print ("""
                 ________                   ________
|    /\    |        |        |\        /|  |       |   |
|   /  \   |        |        | \      / |  |       |   |
|  /    \  |        |        |  \    /  |  |_______|   |
| /      \ |        |        |   \  /   |  |
|/        \|     ___|___     |    \/    |  |           O

Oh Well!!!

    """)
    time.sleep(1)

if loop == 'E':
    print ("The goal is to find the Legendary Cheese!")
    print ("Navigate the maze by using; north, south, east, or west.")
    print ("Type Q to QUIT or R to RESET the program")
    print ("Good Luck!!!!!")
    time.sleep(5)
    print_map()

#actual maze starts here
while loop=='E':

    if board[0] == 'x':
        userinput = (input('pick a direction: '))
        print ()
        if userinput == 'north' or userinput == 'n':
            board[1] = ('x')
            board[0] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()

        elif userinput == 'Q':
                Quit()
        else:
            print("Go into the maze...")

    if board[1] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[2] = ('x')
            board[1] = (' ')
            print_map()
        elif userinput == 'south':
            board[27] = ('x')
            board[1] = (' ')
            print_map()
            print(" ")
            print('WHAT?!? You found a "short cut!"')

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[2] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[3] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'north':
            board[20] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'east':
            board[1] = ('x')
            board[2] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[3] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[4] = ('x')
            board[3] = (' ')
            print_map()
        elif userinput == 'east':
            board[2] = ('x')
            board[3] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[4] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[24] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'west':
            board[5] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'south':
            board[3] = ('x')
            board[4] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[5] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[4] = ('x')
            board[5] = (' ')
            print_map()
        elif userinput == 'south':
            board[6] = ('x')
            board[5] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("try east or south...")

    if board[6] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[5] = ('x')
            board[6] = (' ')
            print_map()
        elif userinput == 'south':
            board[7] = ('x')
            board[6] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#first Warp point.
    if board[7] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[8] = ('x')
            board[7] = ('O')
            print_map()
        elif userinput == false:
            board[0] = ('x')
            board[7] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[8] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'south':
            board[9] = ('x')
            board[8] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("Please, go south...")

    if board[9] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[10] = ('x')
            board[9] = (' ')
            print_map()
        elif userinput == 'north':
            board[8] = ('x')
            board[9] = (' ')
            print_map()
            print("Our technolodgy is only capable of oneway warping...")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[10] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[11] = ('x')
            board[10] = (' ')
            print_map()
        elif userinput == 'west':
            board[9] = ('x')
            board[10] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[11] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[12] = ('x')
            board[11] = (' ')
            print_map()
        elif userinput == 'south':
            board[10] = ('x')
            board[11] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("please, go north...")

    if board[12] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[13] = ('x')
            board[12] = (' ')
            print_map()
        elif userinput == 'south':
            board[11] = ('x')
            board[12] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[13] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[14] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'east':
            board[12] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'south':
            board[25] = ('x')
            board[13] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[14] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[15] = ('x')
            board[14] = (' ')
            print_map()
        elif userinput == 'south':
            board[13] = ('x')
            board[14] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[15] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[16] = ('x')
            board[15] = (' ')
            print_map()
        elif userinput == 'west':
            board[14] = ('x')
            board[15] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[16] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[17] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'west':
            board[15] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'south':
            board[26] = ('x')
            board[16] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second Warp point.
    if board[17] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[18] = ('x')
            board[17] = ('O')
            print_map()
        elif userinput == false:
            board[8] = ('x')
            board[17] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[18] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[19] = ('x')
            board[18] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("oh, come on!")

#This is the winning square, the cheese!
    if board[19] == 'x':
            print("Congradulations! The Legendary Cheese was not a lie!")
            print("Winner winner, fondue dinner!!!")
            userinput = (input('Type R for Reset or Q for Quit: '))
            if userinput == 'R':
                Reset()
            elif userinput == 'Q':
                Quit()

#first dead-end path
    if board[20] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[21] = ('x')
            board[20] = (' ')
            print_map()
        elif userinput == 'south':
            board[2] = ('x')
            board[20] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[21] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[22] = ('x')
            board[21] = (' ')
            print_map()
        elif userinput == 'west':
            board[20] = ('x')
            board[21] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[22] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[23] = ('x')
            board[22] = (' ')
            print_map()
            print('dead end...')
        elif userinput == 'south':
            board[21] = ('x')
            board[22] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[23] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[22] = ('x')
            board[23] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second dead end
    if board[24] == 'x':
        print('Wow... Just, wow')
        userinput = (input('pick a rational direction: '))
        if userinput == 'west':
            board[4] = ('x')
            board[24] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("just go ahead and push Q already...")

#Third Warp point.
    if board[25] == 'x':
        userinput = (riddle_er('a'))
        if userinput == true:
            board[8] = ('x')
            board[25] = ('O')
            print_map()
        elif userinput == false:
            board[23] = ('x')
            board[25] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

#false finish
    if board[26] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[27] = ('x')
            board[26] = (' ')
            print_map()
        elif userinput == 'north':
            print_map()
            print ("You can't quite see it on the map",
            "(we ran out of development funds)")
            print("but there was a 20-foot dropoff here that prevents you from")
            print("going backwords. Impressive, huh?")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[27] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[28] = ('x')
            board[27] = (' ')
            print_map()
        elif userinput == 'west':
            board[26] = ('x')
            board[27] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[28] == 'x':
        print_map()
        print(" ")
        print('Epic Fail!')
        print('You were told to find the Legendary Cheese,',
        'not the exit!')
        userinput = (input('Type R for Qeset or Q for Quit: '))
        if userinput == 'R':
            Reset()
        elif userinput == 'Q':
            Quit()
#used to pause the program ie.. time.sleep(enter in seconds)
import time

import random

#variables
board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
riddle = ['What gets wet when drying?', 'What color is the sky',
         'What is binded when it walks, and loosened when it stops?',
         'What belongs to you, but others use it more?',
         'What is put on a table, cut, but never eaten?']
answer = ['towel', 'blue', 'sandals', 'name', 'cards']
answer1= ['Towel', 'Blue', 'Sandals', 'Name', 'Cards']
answer2= ['a towel', 'blue', 'sandals', 'my name', 'a deck of cards']
true = ('1')
false = ('0')

#This defines the cycle and riddle functions.
def cycle(b):
    global riddle
    global answer
    riddle.append(riddle[0])
    answer.append(answer[0])
    answer1.append(answer1[0])
    asnwer2.append(answer2[0])
    riddle.remove(riddle[0])
    answer.remove(answer[0])
    answer1.remove(answer1[0])
    answer2.remove(answer2[0])
    return '0'

def riddle_er(b):
    global riddle
    global answer
    cycle('a')
    print(riddle[0])
    user_answer = input()
    if user_answer == answer[0] or user_answer == answer1[0] or user_answer == answer2[0]:
        return true
    elif user_answer != answer[0] or user_answer != answer1[0] or user_answer != answer2[0]:
        return false

#defines the Reset function
def Reset():
    global board
    board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
    print(' ')
    print(' ')
    print(' ')
    print('Try again!')
    return(print_map())

#defines the quit program function
def Quit():
    print('Good bye!')
    time.sleep(1)
    global loop
    loop=('0')

#defines the print map function
def print_map():
    print ()
    print ()
    print(':=====================:',board[28],':')
    print('|',board[14],'    ',board[15],'    ',board[16],' ',board[17],'|   |')
    print(':   :===:=====:   :===:   :')
    print('|',board[13],' ',board[12],'|',board[18],board[19],'|',board[26],'     ',board[27],'|')
    print(':   :   :===:=======:=====:')
    print('|',board[25],'|',board[11],'|',board[5],' ',board[4],' ',board[24],'|',board[23],board[22],'|')
    print(':===:   :   :   :===:=:   :')
    print('|',board[8],'|   |',board[6],'|   |',board[20],'   ',board[21],'|')
    print(':   :   :   :   :   :=====:')
    print('|',board[9],' ',board[10],'|',board[7],'|',board[3],' ',board[2],'   ',board[1],'|')
    print(':=======:===:=========:   :')
    print('                       ',board[0],' ')
    #Note, 0-19 is the route to win.
#this next line prevents the program from returning a "none" statement.
    return('')

#Intro into the game.
print ("Welcome to the Wild Riddle Maze!!!")

user_input = (input("""
Enter E to start the game
OR press Enter to abort
"""))

#This is incase the user does not select E
loop=(user_input)
if loop != 'E':
    import time
    print ("""
                 ________                   ________
|    /\    |        |        |\        /|  |       |   |
|   /  \   |        |        | \      / |  |       |   |
|  /    \  |        |        |  \    /  |  |_______|   |
| /      \ |        |        |   \  /   |  |
|/        \|     ___|___     |    \/    |  |           O

Oh Well!!!

    """)
    time.sleep(1)

if loop == 'E':
    print ("The goal is to find the Legendary Cheese!")
    print ("Navigate the maze by using; north, south, east, or west.")
    print ("Type Q to QUIT or R to RESET the program")
    print ("Good Luck!!!!!")
    time.sleep(5)
    print_map()

#actual maze starts here
while loop=='E':

    if board[0] == 'x':
        userinput = (input('pick a direction: '))
        print ()
        if userinput == 'north' or userinput == 'n':
            board[1] = ('x')
            board[0] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()

        elif userinput == 'Q':
                Quit()
        else:
            print("Go into the maze...")

    if board[1] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[2] = ('x')
            board[1] = (' ')
            print_map()
        elif userinput == 'south':
            board[27] = ('x')
            board[1] = (' ')
            print_map()
            print(" ")
            print('WHAT?!? You found a "short cut!"')

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[2] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[3] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'north':
            board[20] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'east':
            board[1] = ('x')
            board[2] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[3] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[4] = ('x')
            board[3] = (' ')
            print_map()
        elif userinput == 'east':
            board[2] = ('x')
            board[3] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[4] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[24] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'west':
            board[5] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'south':
            board[3] = ('x')
            board[4] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[5] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[4] = ('x')
            board[5] = (' ')
            print_map()
        elif userinput == 'south':
            board[6] = ('x')
            board[5] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("try east or south...")

    if board[6] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[5] = ('x')
            board[6] = (' ')
            print_map()
        elif userinput == 'south':
            board[7] = ('x')
            board[6] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#first Warp point.
    if board[7] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[8] = ('x')
            board[7] = ('O')
            print_map()
        elif userinput == false:
            board[0] = ('x')
            board[7] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[8] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'south':
            board[9] = ('x')
            board[8] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("Please, go south...")

    if board[9] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[10] = ('x')
            board[9] = (' ')
            print_map()
        elif userinput == 'north':
            board[8] = ('x')
            board[9] = (' ')
            print_map()
            print("Our technolodgy is only capable of oneway warping...")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[10] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[11] = ('x')
            board[10] = (' ')
            print_map()
        elif userinput == 'west':
            board[9] = ('x')
            board[10] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[11] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[12] = ('x')
            board[11] = (' ')
            print_map()
        elif userinput == 'south':
            board[10] = ('x')
            board[11] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("please, go north...")

    if board[12] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[13] = ('x')
            board[12] = (' ')
            print_map()
        elif userinput == 'south':
            board[11] = ('x')
            board[12] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[13] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[14] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'east':
            board[12] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'south':
            board[25] = ('x')
            board[13] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[14] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[15] = ('x')
            board[14] = (' ')
            print_map()
        elif userinput == 'south':
            board[13] = ('x')
            board[14] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[15] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[16] = ('x')
            board[15] = (' ')
            print_map()
        elif userinput == 'west':
            board[14] = ('x')
            board[15] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[16] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[17] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'west':
            board[15] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'south':
            board[26] = ('x')
            board[16] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second Warp point.
    if board[17] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[18] = ('x')
            board[17] = ('O')
            print_map()
        elif userinput == false:
            board[8] = ('x')
            board[17] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[18] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[19] = ('x')
            board[18] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("oh, come on!")

#This is the winning square, the cheese!
    if board[19] == 'x':
            print("Congradulations! The Legendary Cheese was not a lie!")
            print("Winner winner, fondue dinner!!!")
            userinput = (input('Type R for Reset or Q for Quit: '))
            if userinput == 'R':
                Reset()
            elif userinput == 'Q':
                Quit()

#first dead-end path
    if board[20] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[21] = ('x')
            board[20] = (' ')
            print_map()
        elif userinput == 'south':
            board[2] = ('x')
            board[20] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[21] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[22] = ('x')
            board[21] = (' ')
            print_map()
        elif userinput == 'west':
            board[20] = ('x')
            board[21] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[22] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[23] = ('x')
            board[22] = (' ')
            print_map()
            print('dead end...')
        elif userinput == 'south':
            board[21] = ('x')
            board[22] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[23] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[22] = ('x')
            board[23] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second dead end
    if board[24] == 'x':
        print('Wow... Just, wow')
        userinput = (input('pick a rational direction: '))
        if userinput == 'west':
            board[4] = ('x')
            board[24] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("just go ahead and push Q already...")

#Third Warp point.
    if board[25] == 'x':
        userinput = (riddle_er('a'))
        if userinput == true:
            board[8] = ('x')
            board[25] = ('O')
            print_map()
        elif userinput == false:
            board[23] = ('x')
            board[25] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

#false finish
    if board[26] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[27] = ('x')
            board[26] = (' ')
            print_map()
        elif userinput == 'north':
            print_map()
            print ("You can't quite see it on the map",
            "(we ran out of development funds)")
            print("but there was a 20-foot dropoff here that prevents you from")
            print("going backwords. Impressive, huh?")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[27] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[28] = ('x')
            board[27] = (' ')
            print_map()
        elif userinput == 'west':
            board[26] = ('x')
            board[27] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[28] == 'x':
        print_map()
        print(" ")
        print('Epic Fail!')
        print('You were told to find the Legendary Cheese,',
        'not the exit!')
        userinput = (input('Type R for Qeset or Q for Quit: '))
        if userinput == 'R':
            Reset()
        elif userinput == 'Q':
            Quit()
#used to pause the program ie.. time.sleep(enter in seconds)
import time

import random

#variables
board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
riddle = ['What gets wet when drying?', 'What color is the sky',
         'What is binded when it walks, and loosened when it stops?',
         'What belongs to you, but others use it more?',
         'What is put on a table, cut, but never eaten?']
answer = ['towel', 'blue', 'sandals', 'name', 'cards']
answer1= ['Towel', 'Blue', 'Sandals', 'Name', 'Cards']
answer2= ['a towel', 'blue', 'sandals', 'my name', 'a deck of cards']
true = ('1')
false = ('0')

#This defines the cycle and riddle functions.
def cycle(b):
    global riddle
    global answer
    riddle.append(riddle[0])
    answer.append(answer[0])
    answer1.append(answer1[0])
    asnwer2.append(answer2[0])
    riddle.remove(riddle[0])
    answer.remove(answer[0])
    answer1.remove(answer1[0])
    answer2.remove(answer2[0])
    return '0'

def riddle_er(b):
    global riddle
    global answer
    cycle('a')
    print(riddle[0])
    user_answer = input()
    if user_answer == answer[0] or user_answer == answer1[0] or user_answer == answer2[0]:
        return true
    elif user_answer != answer[0] or user_answer != answer1[0] or user_answer != answer2[0]:
        return false

#defines the Reset function
def Reset():
    global board
    board = ['x',' ',' ',' ',' ',' ',' ','O',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ','O',' ','C',' ',' ',' ',' ',' ','O',' ',' ',' ']
    print(' ')
    print(' ')
    print(' ')
    print('Try again!')
    return(print_map())

#defines the quit program function
def Quit():
    print('Good bye!')
    time.sleep(1)
    global loop
    loop=('0')

#defines the print map function
def print_map():
    print ()
    print ()
    print(':=====================:',board[28],':')
    print('|',board[14],'    ',board[15],'    ',board[16],' ',board[17],'|   |')
    print(':   :===:=====:   :===:   :')
    print('|',board[13],' ',board[12],'|',board[18],board[19],'|',board[26],'     ',board[27],'|')
    print(':   :   :===:=======:=====:')
    print('|',board[25],'|',board[11],'|',board[5],' ',board[4],' ',board[24],'|',board[23],board[22],'|')
    print(':===:   :   :   :===:=:   :')
    print('|',board[8],'|   |',board[6],'|   |',board[20],'   ',board[21],'|')
    print(':   :   :   :   :   :=====:')
    print('|',board[9],' ',board[10],'|',board[7],'|',board[3],' ',board[2],'   ',board[1],'|')
    print(':=======:===:=========:   :')
    print('                       ',board[0],' ')
    #Note, 0-19 is the route to win.
#this next line prevents the program from returning a "none" statement.
    return('')

#Intro into the game.
print ("Welcome to the Wild Riddle Maze!!!")

user_input = (input("""
Enter E to start the game
OR press Enter to abort
"""))

#This is incase the user does not select E
loop=(user_input)
if loop != 'E':
    import time
    print ("""
                 ________                   ________
|    /\    |        |        |\        /|  |       |   |
|   /  \   |        |        | \      / |  |       |   |
|  /    \  |        |        |  \    /  |  |_______|   |
| /      \ |        |        |   \  /   |  |
|/        \|     ___|___     |    \/    |  |           O

Oh Well!!!

    """)
    time.sleep(1)

if loop == 'E':
    print ("The goal is to find the Legendary Cheese!")
    print ("Navigate the maze by using; north, south, east, or west.")
    print ("Type Q to QUIT or R to RESET the program")
    print ("Good Luck!!!!!")
    time.sleep(5)
    print_map()

#actual maze starts here
while loop=='E':

    if board[0] == 'x':
        userinput = (input('pick a direction: '))
        print ()
        if userinput == 'north' or userinput == 'n':
            board[1] = ('x')
            board[0] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()

        elif userinput == 'Q':
                Quit()
        else:
            print("Go into the maze...")

    if board[1] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[2] = ('x')
            board[1] = (' ')
            print_map()
        elif userinput == 'south':
            board[27] = ('x')
            board[1] = (' ')
            print_map()
            print(" ")
            print('WHAT?!? You found a "short cut!"')

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[2] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[3] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'north':
            board[20] = ('x')
            board[2] = (' ')
            print_map()
        elif userinput == 'east':
            board[1] = ('x')
            board[2] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("You found a wall...")

    if board[3] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[4] = ('x')
            board[3] = (' ')
            print_map()
        elif userinput == 'east':
            board[2] = ('x')
            board[3] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[4] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[24] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'west':
            board[5] = ('x')
            board[4] = (' ')
            print_map()
        elif userinput == 'south':
            board[3] = ('x')
            board[4] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[5] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[4] = ('x')
            board[5] = (' ')
            print_map()
        elif userinput == 'south':
            board[6] = ('x')
            board[5] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("try east or south...")

    if board[6] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[5] = ('x')
            board[6] = (' ')
            print_map()
        elif userinput == 'south':
            board[7] = ('x')
            board[6] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#first Warp point.
    if board[7] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[8] = ('x')
            board[7] = ('O')
            print_map()
        elif userinput == false:
            board[0] = ('x')
            board[7] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[8] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'south':
            board[9] = ('x')
            board[8] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("Please, go south...")

    if board[9] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[10] = ('x')
            board[9] = (' ')
            print_map()
        elif userinput == 'north':
            board[8] = ('x')
            board[9] = (' ')
            print_map()
            print("Our technolodgy is only capable of oneway warping...")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[10] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[11] = ('x')
            board[10] = (' ')
            print_map()
        elif userinput == 'west':
            board[9] = ('x')
            board[10] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[11] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[12] = ('x')
            board[11] = (' ')
            print_map()
        elif userinput == 'south':
            board[10] = ('x')
            board[11] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("please, go north...")

    if board[12] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[13] = ('x')
            board[12] = (' ')
            print_map()
        elif userinput == 'south':
            board[11] = ('x')
            board[12] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[13] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[14] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'east':
            board[12] = ('x')
            board[13] = (' ')
            print_map()
        elif userinput == 'south':
            board[25] = ('x')
            board[13] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[14] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[15] = ('x')
            board[14] = (' ')
            print_map()
        elif userinput == 'south':
            board[13] = ('x')
            board[14] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[15] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[16] = ('x')
            board[15] = (' ')
            print_map()
        elif userinput == 'west':
            board[14] = ('x')
            board[15] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[16] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[17] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'west':
            board[15] = ('x')
            board[16] = (' ')
            print_map()
        elif userinput == 'south':
            board[26] = ('x')
            board[16] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second Warp point.
    if board[17] == 'x':
        userinput = riddle_er('a')
        if userinput == true:
            board[18] = ('x')
            board[17] = ('O')
            print_map()
        elif userinput == false:
            board[8] = ('x')
            board[17] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

    if board[18] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[19] = ('x')
            board[18] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("oh, come on!")

#This is the winning square, the cheese!
    if board[19] == 'x':
            print("Congradulations! The Legendary Cheese was not a lie!")
            print("Winner winner, fondue dinner!!!")
            userinput = (input('Type R for Reset or Q for Quit: '))
            if userinput == 'R':
                Reset()
            elif userinput == 'Q':
                Quit()

#first dead-end path
    if board[20] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[21] = ('x')
            board[20] = (' ')
            print_map()
        elif userinput == 'south':
            board[2] = ('x')
            board[20] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[21] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[22] = ('x')
            board[21] = (' ')
            print_map()
        elif userinput == 'west':
            board[20] = ('x')
            board[21] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[22] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'west':
            board[23] = ('x')
            board[22] = (' ')
            print_map()
            print('dead end...')
        elif userinput == 'south':
            board[21] = ('x')
            board[22] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[23] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[22] = ('x')
            board[23] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

#second dead end
    if board[24] == 'x':
        print('Wow... Just, wow')
        userinput = (input('pick a rational direction: '))
        if userinput == 'west':
            board[4] = ('x')
            board[24] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("just go ahead and push Q already...")

#Third Warp point.
    if board[25] == 'x':
        userinput = (riddle_er('a'))
        if userinput == true:
            board[8] = ('x')
            board[25] = ('O')
            print_map()
        elif userinput == false:
            board[23] = ('x')
            board[25] = ('O')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("User_Error: Please replace user and try again...")

#false finish
    if board[26] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'east':
            board[27] = ('x')
            board[26] = (' ')
            print_map()
        elif userinput == 'north':
            print_map()
            print ("You can't quite see it on the map",
            "(we ran out of development funds)")
            print("but there was a 20-foot dropoff here that prevents you from")
            print("going backwords. Impressive, huh?")

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[27] == 'x':
        userinput = (input('pick a direction: '))
        if userinput == 'north':
            board[28] = ('x')
            board[27] = (' ')
            print_map()
        elif userinput == 'west':
            board[26] = ('x')
            board[27] = (' ')
            print_map()

        elif userinput == 'R':
                Reset()
        elif userinput == 'Q':
                Quit()
        else:
            print("...")

    if board[28] == 'x':
        print_map()
        print(" ")
        print('Epic Fail!')
        print('You were told to find the Legendary Cheese,',
        'not the exit!')
        userinput = (input('Type R for Qeset or Q for Quit: '))
        if userinput == 'R':
            Reset()
        elif userinput == 'Q':
            Quit()

Edited 4 Years Ago by idislikemacs: used code in snippet

To run a timer in the background you have to use the module threading.
You can also use the current time at start and end of the game and calculate the difference.

time elapsed using time.clock() or time.time():

 import time



# time.clock() is for windows only, updates every 1 ms
start = time.clock()

# your program code here ...

# for instance this demo code will take about 7.5 seconds
print "going"
time.sleep(2.5)  # 2.5 seconds
print "still going"
time.sleep(2.5)
print "still going"
time.sleep(2.5)
print "done"


# ... your program ends
end = time.clock()
print "Time elapsed = ", end - start, "seconds"

Edited 4 Years Ago by pyTony: code

Comments
that's it

Zoee,
looks like the top two lines of code slipped out of the code area. The new DaniWeb code handling is really a pith!

This question has already been answered. Start a new discussion instead.