iamjawa / zork-py Goto Github PK
View Code? Open in Web Editor NEWZork: The PY Edition (A Python Text-Adventure based loosely on the original Zork.)
License: Do What The F*ck You Want To Public License
Zork: The PY Edition (A Python Text-Adventure based loosely on the original Zork.)
License: Do What The F*ck You Want To Public License
I just used the program (with python2). In the 10th loop one has to use elif instead of if - otherwise the program will not run as intended?!
Am I missing something?
I'm running this in Powershell if it makes a difference.
I'm learning python through Learn python 3 the hard way and in exercise 14 it tells me to find zork and adventure and play them.
This popped up when I first ran it.
You are standing in an open field west of a white house, with a boarded front door.
(A secret path leads southwest into the forest.)
There is a Small Mailbox.
Traceback (most recent call last):
File "D:\Pythonlearn\zork-py-1.3\zork.py", line 10, in
first = raw_input(str("What do you do? "))
NameError: name 'raw_input' is not defined
I replaced every instance of "raw_input" with "input' and it worked fine.
I suggest you look up how to develop a text adventure, and frankly the source to this looks terrible. You're not supposed to just get input then compare it to every possibly situation that can occur. You should get input, parse it (look for verbs, nouns) and then act accordingly.
This is a great game. However it is almost impossible to guess the correct answer.
Normally, people would just be stuck in the first loop.
May be add some hints after certain loops, like two key words or add more options.
Overall, seems great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.