NAME

golf - a script to test and submit entries to a Perl Golf Course

SYNPOSIS

golf hole

DESCRIPTION

This program check that a golf script work accordingly to a test file provided by the organisers of a Perl Golf Competition.

golf can submit your entry to the Perl Golf Administration System (PGAS) that runs the competition, if it passes the test suite.

golf records your progress in a cache file. The main purpose of this cache file is to prevent resubmitting an already submitted entry. You should not erase the cache file during the course of a game, particularly if you use the autosubmit options.

COMMAND-LINE ARGUMENTS

All command-line arguments have a corresponding configuration file directive. The command-line arguments can be used to change the behaviour of the program.

-n <number>

Only print the diagnostics for the <number> first failed tests.

-q

Quiet. Only print the score, and the ratio of passed tests.

-v

Verbose output. Print all the diagnostics for all failed tests. This is the default.

SEE ALSO

Games::Golf

PGAS: http://perlgolf.sf.net/

TODO

* define command-line arguments
* read configuration file
* part of the configuration should be entered as comments in the hole
  itself (e.g. PGAS-Server: http://perlgolf.sf.net/cgi-bin/submit.cgi)
* history autosave
* autosubmit options (requires autosave, to save only different stuff)
  (duplicates should also be handled by PGAS)