我是一名游戏玩家,他决定要制作其他人可以玩的基本游戏.我对编码非常陌生并且对它有最基本的了解.我的堂兄和我正在尝试在Python 3.6.0中制作基于文本的游戏.我们在互联网上搜索了我们的问题的答案,但找不到任何东西.代码如下:
def start ():
print ''' Welcome to the game! Created by Meme Buddha
type 'start' to begin'''
print
prompt_sta ()
def prompt_sta ():
prompt_0 = input ('Type a Command, ')
try:
if prompt_0 == 'Start':
outside_house ()
elif prompt_0 == 'Begin':
print 'You need to drink bleach and look at spicy memes!'
print
prompt_sta ()
else:
print 'Type Start, throw it on him not me,ugh,lets try something else!'
print
prompt_sta ()
except ValueError:
print 'Type Start, throw it …Run Code Online (Sandbox Code Playgroud)