[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple game board GUI framework

I would echo the recommendation of teaching something you are already
familiar with doing.   Perhaps you can find a different class hierarchy to work

I remember that the first time I really began to grok OOP was in a
text-based MUD environment.   In the application area, clearly
everything was an object (sword, bag, apple, etc.)   Some objects
were living (like player charaters and NPCs).   Many objects also
served as containers (bags had contents, rooms had contents,
players had an inventory).   And the polymorphism that came with
OOP allowed me to even simulate a ship, which was one object
whose inventory included several rooms, so as the ship moved,
so did everything on board.

And there was no GUI required for it -- so no issues there.

It's been a couple decades or so, but that interpreted object-oriented
language LPC might still be out there somewhere.

Roger ChristmanPennsylvania State University
On Mon, Sep 11, 2017 12:00 PM, Paul Moore wrote:

>My student has told me that he would like to understand classes so
>that he can better understand the logic behind the class-based
>features in the stdlib. That's why I'm trying to find a useful,
>understandable, example to work with.
>>My problem is that I've never written any sort of game code for
>>Python, which is basically what this is.
>>   Get proficient first, then teach.
>I'll assume you don't mean that to be as critical of me as it sounds.
>I have no intention of trying to teach anyone "how to write a GUI
>program" or "how to use pygame". Any more than I'm trying to
>teach how
>the Python interpreter works. I'm simply trying to find (or build) an
>environment that helps me explain the concepts that I *am* trying to
>teach better than a command line REPL can do.
>>   And as I said, I would prefer to teach the standard
>>   frameworks and libraries that are distributed with the
>>   standard distribution of Python before I teach additional
>>   frameworks.
>As I said, I've been doing that, but need to help the student
>understand classes to give them a better understanding of why the
>stdlib is designed the way it is.
>>   Ok, if you teach at a gaming academy of when the title
>>   of the class contains the word "game", then you might have
>>   to teach game programming, but in this case you should
>>   really become proficient in it first.
>Well, obviously. I'm not sure why you think I'd consider it otherwise :-(
>Thank you for your comments, but clearly you have a very different
>environment and/or set of students than I have.