# this is a program intended just for my fiance
# it is intended to be entertaining, sweet, and/or useful.
# I will start by making one simple function and randomly expand on that
# !!!!!!!! I need to define prompt_login() before I call it! !!!!!!!!!!!!
def denaystart():
print '''Welcome to the PyMat 2000 login. Answer the following question to run PyMat 2000.'''
prompt_login()
print '''PyMat 2000 presents.....Secret Garden.
Concieved on 10/26/06 for Denay L. Ruane.'''
print
def prompt_login():
prompt_a = raw_input("What is your name? ").lower()
try:
if prompt_a == "denay" or prompt_a == "denay wiles":
print '''Welcome to your secret garden, Sailboat! This program is
designed to give you something to entertain yourself with when you
are very bored (we all know how bored you would have to be to play with
stupid programs like mine!) There are a few things you can do with this program,
here are the commands that let you do some of them...
PLAY GAMES, and have WORD FUN. There are more coming to you, so be
patient. My Creator, The Almighty One, has only limited time to work on
me. Enjoy your gift, Denay.'''
print
denaylogged()
else:
print "Access Denied due to improper Identity Clearance."
prompt_login()
# somehow there is a syntax error on this line, but there was nothing there?!
def denaylogged():
print '''Hello, Denay! My name is Sally, I am a Multi Purpose Platform Interactive Program,
or MPPIP for short. I was designed by a blossoming programming genious to provide you with some
entertainment and a friend if you need one. While talking to me is not the same as talking to a real
person, I will do my best to provide you with the highest quality of virtual friendship. My A.I.
is not very advanced as of yet, but I will learn as we interact. '''
print
prompt_dl()
def prompt_dl():
prompt_b = raw_input("Tell Sally: ").lower()
if prompt_b == "play games" or prompt_b == "games": # if prompt_dl == "" or prompt_dl == "": ??????
denaygames()
elif prompt_b == "word fun" or prompt_b == "word":
dencodefun()
elif prompt_b == "help me" or prompt_b == "help commands":
help1()
else:
print "I don't understand what you want. Type 'help commands' for advice. "
def dencodefun():
print '''Hello Denay, this is Sally. I am here to help you with any
questions you may have about this program. You are currently using Pymat 2000's
Codex v1.0. This program allows you to translate words into secret code, or, decode
words written in secret code. Codex v1.0 deals in a code called Ceaser Salad. Type
'help' for more help. '''
print
prompt_st()
def prompt_st():
prompt_c = raw_input("Tell Sally:").lower()
if prompt_c == "help":
print '''Well, hello Denay, I assume you need some help with Codex? Alright.
When you first load the program, you come to the main menu screen. Here you will
choose an option that best suits your needs.
Choose option (1) to Encode, or translate readable messages into Ceaser Salad code.
Choose option (2) to Decode, or, translate Ceaser Salad code into readable words.
Option number (3) will tell you alittle more about Codex v1.0, while
Option number (4) will exit the program. REMEMBER Denay, when making a selection, type
in the number of the action you wish to make, not the words. To begin the fun, type
'start'. '''
elif prompt_c == "start" or prompt_c == "begin":
execfile('C:\python24\pymat2000.pyw')
else:
print "I am yet still very young, could you type everything out so I can understand?"
prompt_st()
def help1():
print ''' Hello Denay, this is Sally again. I am going to help you with the command list.
When you are in any program, typing 'help' at any time will call me, and I will explain to you
the commands for that program. In this program your commands are 'play games', 'word games', and of
course 'help'. Enter your commands with exact spelling, or I will not understand. Have fun sweetie. '''
print
prompt_b()
denaystart()
# do I need to call denaystart() as a function to get it to work ??????????
# or does it call itself ???????????/
# I just can't get this program to work ??????????
# should prompt_login() be like is or should it be ??????
# if prompt_a == "denay" or prompt_a == "denay wiles": ???????
# my main challenge is understanding the def function(): mechanics. ????????
# is this correct: ???????????
# def function():
# print '''words and stuff go here ''' ???????
# print
# prompt_function = raw_input(""): that is my problem. ??????
# do i call the user input prompt the same as the function, or did I do it right in
# the example????????????
# and for:
# if (user input prompt) == "":
# what do I call the user input prompt?
# Next step is to make sure that the Codex works
# Start developing word games for the word fun section
# Create a function for more info on Sally