Python Simple Text Adventure

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Python is beautiful -- simple and powerful in it's simplicity.
Great video!

eugeniomyles
Автор

for t in transitions means examine all the transitions in turn, letting t be a variable used to access each transition.

I run on a Mac, but this program should work most anywhere Python works.

DaveBriccetti
Автор

Thank you for brief explanations and great beginners tutorial.

sirfatant
Автор

Sukvin, have you seen the newer version of this program? Python Simple Text Adventure 3
If I return to this series I’ll sure consider doing what you’re asking about, but for right now I can’t think of a simple way to help. Perhaps someone else will have some ideas.

DaveBriccetti
Автор

This version of the code is for Python 2. You can tell because you see print in this form:
print x
instead of print(x)

DaveBriccetti
Автор

Thanks. You’re seeing NetBeans. It’s had good Python support for a few years now.

DaveBriccetti
Автор

Hmm maybe you should have a string with current room name, and:
if c_room == 'wanted room name':
do something

Hope this helped :)

Universe
Автор

Excellent tutorial. So simple yet so elegant. Thanks. May I know what editor are you using?

atiqulny
Автор

Eclipse has the Pydev plugin for Python development, so yes, you sure can.

DaveBriccetti
Автор

In my script it's enumerating every single letter of the description, i checked the code and i have no idea why.

Venomien
Автор

Hi. Thanks. Well, there’s always IDLE, but it is pretty basic. I am using NetBeans lately with my students.

DaveBriccetti
Автор

And, if you’re running in Python 3, please change all
print x
to
print(x)

DaveBriccetti
Автор

ah yes I have figured out how to tell.
Thank you for response and for the vids!
: ]

bmanning
Автор

Hi, great tutorial!
What Python IDE do you recommend for a beginner?

Venlinahr
Автор

It sounds like you are iterating over a string (which is a sequence), rather than a sequence of strings.

DaveBriccetti
Автор

I am making a text adventure using this method. Everything works but I want to end the game when I find a certain room. How would I do that????

EricLive
Автор

Folks, if you are having trouble with changes you made, please send a link to your complete module.

DaveBriccetti
Автор

Hi. If you see “print('something')” vs. “print something” in my code, then it’s likely version 3.

DaveBriccetti
Автор

could I ask what IDE you are using here?

TheMrSkelington
Автор

Hello, I'm confused and you can very possibly help me. I would like one of my locations to have more than one word (look out window) but it comes up with an invalid syntax error... or something. Can you help?

TheQuantumCupcake
visit shbcf.ru