En réponse à [EMAIL PROTECTED]:

> David H. Adler wrote:
> > If any of you have read The Perl Review
> > (http://www.perl.org/ThePerlReview/), you may have noticed,
> > buried in the back, a golf challenge.
> >
> > To make a long story short, we're looking for someone to be
> > our Master of Golf.
> 
> I like the interactive nature of the fwp golf games with their
> periodic scoreboard updates. Moreover, I feel a tight test program
> is essential for a serious golf game because it clarifies the
> problem semantics better than English can.
> 
> I suppose the TPR web site could have a test program to download,
> along with a current scoreboard, much like Ton's game at:
>  http://a108.bauhuette.haw-hamburg.de/golf/challenge.html
> but that is quite a lot of work.

I think it's high-time fwp developped the module Game::Golf, or
Game::PerlGolf, to help handling these contests.

It should have a scoring method (maybe with several scoring rules
(embedded newlines, etc) And even better, I think it should use Test::Harness
to handle testing.

Then the hole creators would only have to write .t files, which would
be run by the Game::PerlGolf object, which would calculate the score.
And so you could not just fail, but fail on 2 out of 10 (or 20) tests.

A method to check several entries in a row and automatically provide
the Leader Board would be nice, I think.

I have toyed with the idea since Santa's game, but never got further
than discovering that the interface would be a little difficult to specify.
Since I don't think I can handle this alone, may I suggest that fwp,
and particularly the previous judges and players come together to
design and code this project ?

I can already imagine golf games being given as .t files, with the
pod documentation explaining what you have to do, and the test program
being perl -MGame::PerlGolf -e test (more or less).


-- 
 Philippe BRUHAT - BooK

 When you run from your problem, you make it that much harder for good
 fortune to catch you, as well.     (Moral from Groo The Wanderer #14 (Epic))

Reply via email to