473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Re: text adventure game problem

On Apr 11, 12:08 pm, "Neil Cerutti" <mr.ceru...@gmail.comwrote:
On Thu, Apr 10, 2008 at 8:25 PM, Carl Banks <pavlovevide...@gmail.comwrote:
On Apr 10, 2:20 pm, Tommy Nordgren <tommy.nordg...@comhem.sewrote:
On 9 apr 2008, at 03.01, corvettecra...@gmail.com wrote:
okay, I'm having this one problem with a text adventure game. It's
kind of hard to explain, but I'll do my best.
[code]
def prompt_kitchen():
global gold
Python is not a suitable language for Text Adventure Development.
Ridiculous.

Agreed. "Not suitable" is an exaggeration. However, designing and
implementing your own adventure game framework in Python is a total
waste of time.
That depends.
Don't do it excet for the sake of it.

You can even claim one of several Python-based frameworks out of
mothballs as a starting point, if you want to use Python.
There are many good reasons why someone might want to use a general
purpose language like Python to write a text adventure,

Yes.
such as so
they're not stuck with a quasi hack of a language if they have to do
something that doesn't fit the framework anticipated by the language
designer.

That's not a reason, it's FUD.
No, it's prudence.

If I am writing a banal, been-done-a-million-times before, cookie-
cutter text adventure, yes I'd just use a domain-specific language.

If I am writing a unique game that does new things, sooner or later
I'm going to want to do something the designer of the domain-specific
language and framework didn't anticipate. And there is no uncertainty
or doubt about this: when it comes to that, I don't want to be
restrained by a narrow framework or domain-specific language, and I
would want to be using Python, and it isn't even remotely close.

The only question would be whether there's enough general purpose
programming required that it would outweigh the extra work. Which,
let's be honest, is not all that much for a text adventure.
Carl Banks
Jun 27 '08 #1
1 2423
On Tue, Apr 15, 2008 at 9:25 AM, Carl Banks <pa************@gmail.comwrote:
On Apr 11, 12:08 pm, "Neil Cerutti" <mr.ceru...@gmail.comwrote:
such as so
they're not stuck with a quasi hack of a language if they have to do
something that doesn't fit the framework anticipated by the language
designer.
>
That's not a reason, it's FUD.

No, it's prudence.

If I am writing a banal, been-done-a-million-times before, cookie-
cutter text adventure, yes I'd just use a domain-specific language.

If I am writing a unique game that does new things, sooner or later
I'm going to want to do something the designer of the domain-specific
language and framework didn't anticipate. And there is no uncertainty
or doubt about this: when it comes to that, I don't want to be
restrained by a narrow framework or domain-specific language, and I
would want to be using Python, and it isn't even remotely close.

The only question would be whether there's enough general purpose
programming required that it would outweigh the extra work. Which,
let's be honest, is not all that much for a text adventure.
Thanks for the more detailed response.

Your reasoning is valid, but your understanding of the properties of
existing text game frameworks seem to be be out of date.

A usable, extensible, customizable text adventure library for use in
any general-purpose programming language is still a pipe dream.
There aren't even very many failed attempts.

The decent text adventures composed from scratch in a general-purpose
programming language are rare exceptions to the rule. Even among the
tolerable ones, I have personally never seen one that took advantage
of the general-purpose nature of its implementation language to do
something that couldn't have been easily done in the handful of mature
domain-specific languages.

Moreover, the small, but dedicated text-adventure-playing internet
community has developed expectations for the features, infrastructure
and portability of their text adventures that are not trivial to meet
when starting from (close to) ground zero. A few bold pioneers have
managed it. If you're keen to attempt it, Python is an OK choice. The
most recent success I know of was "Aunts & Butlers" [1], composed in
Javascript, which made portability less of an issue than it would be
for Python. There are no completed text adventures in the wild
composed in Python, that I'm aware of. That doesn't mean it can't
happen.

[1] http://versificator.co.uk/auntsandbutlers/

--
Neil Cerutti <mr***************@gmail.com>
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Zachary | last post by:
Hello, I've recently thought of how ideal Python is for the development of what used to be called text adventures. In case any of you don't know, these were basically sort of a computer game in...
3
by: MaKiT | last post by:
I have a program which on start makes a 4x4 grid of tiles. These tiles are all blank. Two Array variables hold the position of 8 pairs of images. Then when you click a tile it is uncovered and you...
1
by: DannyB | last post by:
I am in the process of learning Python. I have the basics down and I now want to test my abilitiy to use them in a (very) small project. I have the idea for a (very) small text based game mapped...
4
by: Ara Kooser | last post by:
I am working on a text adventure game for python to get back into python programming. My version 0.1 used only functions so I could get familiar with how those work. I want to move beyond that. I...
7
by: koonda | last post by:
Hi all, I posted my message earliar and I got some positive feedbacks but that didn't help me to solve some programming problems. I have an Assignment due 20th of this month, next monday. The...
0
by: Sean DiZazzo | last post by:
On Apr 8, 6:01 pm, corvettecra...@gmail.com wrote: Thank you! Just downloaded and am about to have a blast into the past with PlanetFall!
19
by: foolsmart2005 | last post by:
I have written a snake game. There are 2 levels in the game(I finished 1st level). It can run in VC++ without problem but, when I run it on the dev C++ 4.9.9.2, it cannot run. I want to...
1
by: Netwatcher | last post by:
i have a problem with the following (some vaiation of a word quiz game) (ignore first group of hashs) import random WordTank='' GuessTank='' GuessList=12 GuessWords=...
1
by: cousinoer5 | last post by:
I'm trying to implement a shop in my game, right now I can buy anything in the shop and it works perfectly, but I can't sell anything because I get an error I can't figure out. Here's the relevent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.