Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread nathan virgil
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

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread David
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

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread nathan virgil
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. #

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread Luke Paireepinart
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

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread nathan virgil
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

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread nathan virgil
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:

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread Chris Babcock
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

Re: [Tutor] Hands-on beginner's project?

2008-10-03 Thread Steve Willoughby
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

Re: [Tutor] Hands-on beginner's project?

2008-10-02 Thread nathan virgil
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

Re: [Tutor] Hands-on beginner's project?

2008-10-02 Thread Luke Paireepinart
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

Re: [Tutor] Hands-on beginner's project?

2008-06-26 Thread George Oliver
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):

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread Jacqui
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

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread Cédric Lucantis
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

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread bob gailer
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

Re: [Tutor] Hands-on beginner's project? CORRECTION

2008-06-25 Thread bob gailer
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

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread Jacqui
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

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread bhaaluu
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

Re: [Tutor] Hands-on beginner's project?

2008-06-25 Thread Lie Ryan
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 =

[Tutor] Hands-on beginner's project?

2008-06-24 Thread nathan virgil
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

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread bhaaluu
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

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread bob gailer
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,

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread Cédric Lucantis
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

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread Cédric Lucantis
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,

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread David
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

Re: [Tutor] Hands-on beginner's project?

2008-06-24 Thread Alan Gauld
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,