Hm... Tried changing that, but it didn't help
On Thu, Oct 2, 2008 at 9:18 AM, Luke Paireepinart [EMAIL PROTECTED]wrote:
room == start is a comparison (check if room is equal to start - doesn't
make a whole lot of sense to be doing that here). The room variable name
doesn't exist in the
Okay, I'm resurrecting this project.
Where is this project code?
--
Have Fun,
David A.
Powered by Gentoo GNU/LINUX
http://www.linuxcrazy.com
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Fri, Oct 3, 2008 at 9:19 AM, David [EMAIL PROTECTED] wrote:
Okay, I'm resurrecting this project.
Where is this project code? http://www.linuxcrazy.com
Right here. The content is going to eventually go through some drastic
changes, but what's here should be good enough for testing.
#
On Fri, Oct 3, 2008 at 8:50 AM, nathan virgil [EMAIL PROTECTED] wrote:
On Fri, Oct 3, 2008 at 9:19 AM, David [EMAIL PROTECTED] wrote:
Okay, I'm resurrecting this project.
Where is this project code?
It seems like good code,
It's not.
# Content
# retrieve data for current room
room = 1
On Fri, Oct 3, 2008 at 10:02 AM, Luke Paireepinart
[EMAIL PROTECTED]wrote:
On Fri, Oct 3, 2008 at 8:50 AM, nathan virgil [EMAIL PROTECTED]
wrote:
On Fri, Oct 3, 2008 at 9:19 AM, David [EMAIL PROTECTED] wrote:
Okay, I'm resurrecting this project.
Where is this project code?
It
On Fri, Oct 3, 2008 at 10:24 AM, nathan virgil [EMAIL PROTECTED]wrote:
On Fri, Oct 3, 2008 at 10:02 AM, Luke Paireepinart [EMAIL PROTECTED]
wrote:
On Fri, Oct 3, 2008 at 8:50 AM, nathan virgil [EMAIL PROTECTED]
wrote:
On Fri, Oct 3, 2008 at 9:19 AM, David [EMAIL PROTECTED] wrote:
Loops, then? The code this is based off of had the second line of
actual code (between room = 1 and if room ==1) as while true:,
but when I include this, it gives an error at that line. Is there
another way to do that? Maybe while room != 4.2?
What you had before was...
room = 1
if room
On Fri, Oct 03, 2008 at 09:38:56AM -0700, Chris Babcock wrote:
room = 1
while 1:
Also, it may be more clear to say while True: in preference
to while 1:. Note that in your earlier version you didn't
capitalize True which meant Python had no idea what that
value was (could be a variable or
Okay, I'm resurrecting this project. I did a little more work on it then
what you see here, but that ended up getting accidentally deleted, and I
haven't done anything with Python since.
I'm running into one problem already, and I haven't really added any extra
code. In the content (at this
room == start is a comparison (check if room is equal to start - doesn't
make a whole lot of sense to be doing that here). The room variable name
doesn't exist in the current namespace, so it can't be compared to start.
It looks like you wanted room = start.
On 10/2/08, nathan virgil [EMAIL
Python Universe Builder (PUB) is an Interactive Fiction module for
Python. It provides a
programming environment similar to that of Inform or TADS but runs
under any Python
interpreter.
http://py-universe.sourceforge.net/
There also is PAWS (Python adventure writing system):
Hi, I'm a total newbie too, and I'm kind of replying to see if my
instinct on the whole GOTO thing is correct. It's hard to learn a
language without any feedback!
I used GW and Color Basic when I was a kid so I know all about GOTO (and
it was a mess! I programmed one of those interactive stories
Le Wednesday 25 June 2008 12:16:24 Jacqui, vous avez écrit :
Hi, I'm a total newbie too, and I'm kind of replying to see if my
instinct on the whole GOTO thing is correct. It's hard to learn a
language without any feedback!
I used GW and Color Basic when I was a kid so I know all about GOTO
Jacqui wrote:
Hi, I'm a total newbie too, and I'm kind of replying to see if my
instinct on the whole GOTO thing is correct. It's hard to learn a
language without any feedback!
I used GW and Color Basic when I was a kid so I know all about GOTO (and
it was a mess! I programmed one of those
bob gailer wrote:
Jacqui wrote:
Hi, I'm a total newbie too, and I'm kind of replying to see if my
instinct on the whole GOTO thing is correct. It's hard to learn a
language without any feedback!
I used GW and Color Basic when I was a kid so I know all about GOTO (and
it was a mess! I
LOL You rock! That's definitely better than my example. I can't wait to
get better at this!
:-D
On Wed, 2008-06-25 at 09:22 -0400, bob gailer wrote:
Even better is to define a Chapter class, with the various properties
and methods pertinent thereto, then make each chapter an instance
Brian Wisti has a very nice tutorial for Python beginners that uses Interactive
Fiction as the basis of a tutorial:
http://coolnamehere.com/geekery/python/ifiction/index.html
http://coolnamehere.com/geekery/python/ifiction/single-round.html
If it was me, I'd elaborate it a bit more by separating between program
(logic) and story (data). This would make it possible to tell story
without touching the program's code.
like this (in pseudocode):
# main.py
def querier(query):
while True:
print query.prompt
t =
I'm very new to Python, and (to a slightly lesser extent) programming in
general. I'd like to get some experience by practicing simple-yet-functional
programs, with a bit of an emphasis on games. The first game I'd like to
attempt would be a simple, non-linear story, similar to those
Take a look at this page, and see if it is what you're looking for:
http://www.geocities.com/ek.bhaaluu/python/index.html
I haven't worked on this project in awhile because I got sidetracked
by other things, but it's still on the backburner. One day I'll pick it
up again. I think Text Adventure
nathan virgil wrote:
I'm very new to Python, and (to a slightly lesser extent) programming
in general. I'd like to get some experience by practicing
simple-yet-functional programs, with a bit of an emphasis on games.
The first game I'd like to attempt would be a simple, non-linear
story,
Le Tuesday 24 June 2008 17:37:00 nathan virgil, vous avez écrit :
I'm very new to Python, and (to a slightly lesser extent) programming in
general. I'd like to get some experience by practicing
simple-yet-functional programs, with a bit of an emphasis on games. The
first game I'd like to
No, it was whether or not the engine and data could be separated into two
different files, like most modern games. If I ever manage to make really
complex stuff, I might want to take a page out of Id's book and make the
engine open source.
Yes that's what you should do. In python terms,
On Tue, Jun 24, 2008 at 5:37 PM, nathan virgil [EMAIL PROTECTED] wrote:
I'm very new to Python, and (to a slightly lesser extent) programming in
general. I'd like to get some experience by practicing simple-yet-functional
programs, with a bit of an emphasis on games. The first game I'd like to
nathan virgil [EMAIL PROTECTED] wrote
I'm very new to Python, and (to a slightly lesser extent)
programming in
general. I'd like to get some experience by practicing
simple-yet-functional
programs,
That is not a bad idea but...
I figure I just need to use a lot of print, if/elif/else,
25 matches
Mail list logo