[Tutor] Python information

Rob rob@uselesspython.com
Fri, 2 Aug 2002 09:00:24 -0500


Actually, the way I think of programming, each object is the master of its
own existence in a way.

Let's say you're programming your robot dinosaur to trash the GauldBot and
the YooMinator. You don't need to worry about programming a way to affect
their hit points. Each bot is programmed such that if XYZ damage happens to
it, a certain toll is taken on its systems (such as a hit point drop,
although we could make it more interesting, like if your targeting array is
hit you can't target). The code for each object is only concerned with the
operations of that object, not with the operations of other objects.

For instance, the cannonball object isn't worried about the implementations
of the objects firing it or that it's being fired at. But if you want to
fire one, you program your bot to fire a cannonball, etc.

This is some of the simple beauty of object-oriented programming (OOP).

Rob

> -----Original Message-----
> From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
> shey crompton
> Sent: Friday, August 02, 2002 8:41 AM
> To: 'tutor@python.org'
> Subject: RE: [Tutor] Python information
>
>
>
>
> Would you even need to do that though? Using IDLE (sorry I don't know much
> about Unix/Linux), could be part of the tutorial (uber-newbies).
> Having had a bit of time to think about it, I'm not sure of how you could
> combine all skill levels of programming into a game where you program
> yourself, and your enemies; short of choosing your level of programming
> skills first.
>
> I think this is one for your uselesspython challenges, Rob. :-)
>
> Thanks,
>
> Shey
>
>
>  -----Original Message-----
> From: 	Rob [mailto:rob@uselesspython.com]
> Sent:	02 August 2002 14:06
> To:	'Tutor@Python. Org'
> Subject:	RE: [Tutor] Python information
>
> I have been thinking of doing something like this. However, my
> current skill
> level would only enable me to be a part of a development team on such a
> project.
>
> I also think that embedding a python/jython interpreter in a training game
> would give this project an edge unmatched by anything else I've seen out
> there.
>
> Rob
> http://uselesspython.com
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>