Coder Social home page Coder Social logo

zork-py's Introduction

Zork.py

Run on Repl.it

Thank you for downloading a copy of Zork, The PY Edition! This Python Program is based loosely on the Storyline of Zork I, and is intended to run and function exactly like the original - the only difference being that this version is written with Python and can therefore be run and downloaded for free!

To get started:

  1. Unzip/Extract the files within this folder to your computer
  2. If you do not have the latest version of Python 3 installed, please install it from http://www.python.org/download
  3. Open the file named "zork.py"
  4. Have Fun!

Note: This program is built to run on Python 3.

zork-py's People

Contributors

exd-gerrit-bot avatar gr3q avatar iamjawa avatar jonreinhold avatar ksisky avatar linkhehe avatar skiboyec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zork-py's Issues

raw_input not defined

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.

elif instead of if?

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?

The structure is entirely wrong.

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.

Maybe give more hints rather than let people guess

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.