John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
This plays the game properly, and defines a framework for adding statagy ("player") modules.
I'd love to hear feedback about the overall design and the extension mechanism. The idea emplyed here is to return a meta-object structure (hash) as the return from require, that contains items for doing things rather than member function in the usual way, so you don't need two different classes (one for the meta object, one for the real player) or obfuscating things by putting all the members in one class. I figure the usual meta-object will be a copy/paste from the sample with filling in the NAME etc.
Based on any feedback (and sleeping on it), I'll finalize the interfaces and write some proper documentation.
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Skunk Game - first cut
by hydo (Monk) on Jun 21, 2003 at 11:24 UTC | |
by John M. Dlugosz (Monsignor) on Jun 21, 2003 at 20:18 UTC | |
|
Re: Skunk Game - first cut
by particle (Vicar) on Jun 22, 2003 at 14:03 UTC | |
by John M. Dlugosz (Monsignor) on Jun 22, 2003 at 21:37 UTC |