[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Text-Based RPG



Jonah Fishel ha scritto:
> I've been away from Python for several months. I just came back to it,
> to start working on a text-based RPG. To get started, I decided to move
> by rooms. I have separate text files for each major message, to conserve
> file space. What troubles me is that when I tested it, whenever I enter
> anything into the command line, it says 'Invalid command' which I
> included as an error message. Here is where I think the trouble is:

Why, instead of writing your own command line, don't you use the cmd
Python module?

It allows to build command line interfaces very quickly and manages a
lot of things for you.

m.