On Feb 6, 2008 12:06 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
> "bhaaluu" <[EMAIL PROTECTED]> wrote
>
> > Here is my description, in plain English.
> >
> > Text Adventure Game Requirements:
> > 1. The Explorer enters her name at a prompt.
> > 2. Other things are initialized at this point.
> > 3. The layout of the Castle is defined.
> > 4. Treasure is placed in rooms in the Castle.
>
> Actually thats not really plain English its a very structured
> English. In fact it approaches procedural pseudo code!
>
> Its possibly a little too detailed too.

My first try didn't work. I'm going to try again.
I'm intrigued with the idea that the nouns, verbs,
and adjectives can indicate possible classes,
instances, methods, and attributes. While I'm
familiar with the objects in this TAG example,
I'd like to have a way to approach something
that I'm not as familiar with. I like the idea of
this technique. It seems like it should work
with just about anything that can be modelled
as an object.

I have a tendancy to think about
things as actual objects (but probably not OOP
objects -- more like real objects, like a vase).
I also like techniques.

I know this much:

Explorer: has strength & wealth, can carry weapons & food,
can wear armor, can pick-up treasure, can fight monsters,
can wound monsters, can defeat monsters, can move from
room to room.

Monster: can be anywhere, has Ferocity Factor / Danger Level,
can fight Explorer, can wound Explorer, can defeat Explorer.

Treasure: can be picked-up, can be in any room in Castle
(except entrance and exit).

Castle: contains interconnected rooms, has three levels.

Rooms: room has door(s), door(s) connect to other rooms,
room has description, can contain treasure, can contain monster.

The trick is to take all that stuff, and figure out what the classes
are, the instances, the methods, and the attributes. So it seems
I need to write something descriptive about exploring the above.
Subject, verb, adjective object.

I must start somewhere! 8^D
The above is much smaller than my previous "pseudocode" attempt.

>
> I'd go for a more free-form paragraph or two(at most) something
> like:
> ------------------
> I want to build a text adventure game based around
> an explorer moving around a castle with multiple rooms,. In
> each rooms there could be various items of treasure or monsters.
> To win the game the explorer has to collect as much treasure
> as possible and defeat as many monsters as possible. Treasure
> is worth points and the expolorer starts off with a given amount
> of strength and points. ......
>
> Because its a text game the interface will consist of a series
> of input prompts with responses and printed status messages.
> The game is over when.....
> -----------------------
>
> That should be shorter and less likely to predispose your thinking
> to a particular approach - such as when the initialisation takes
> place, or how many rooms or premature consideration of the
> command structures etc. These things should emerge as you
> create the object definitions and interactions. The initial aim is
> only to find the half dozen to a dozen key classes top get started.
> Other classes will emerge as you progress, and some of the
> original candidates may merge into others or be discarded.
>
> And don't forget that there could well be a game class/object to
> control the overall flow of the game and coordinate the actions
> of the other objects. For example the prompt/response/display
> mechanism might be part of the game class (and they might
> be classes too!). This would maximise reuse of the compnent
> objects within a different game framework ( a GUI fort instance)
> later.
>
> HTH,
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.freenetpages.co.uk/hp/alan.gauld
>
>
> _______________________________________________
> Tutor maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/tutor
>

Happy Happy Joy Joy
-- 
b h a a l u u at g m a i l dot c o m
"You assist an evil system most effectively by obeying its
orders and decrees. An evil system never deserves such
allegiance.  Allegiance to it means partaking of the evil.
A good person will resist an evil system with his or her
whole soul." [Mahatma Gandhi]
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to