CTF::Contest - Control Logic for CTF contests.
use CTF;
CTF->load_from_io($config);
my $contest = CTF::Contest->new();
$contest->new_round(); #runs a scoring round, as configured by $config
Connects CTF::FlagServer
/CTF::FlagClient
exchange with the CTF::Score::*
database abstraction, and bundles it together with a bit of control logic.
This is probably the only object you'll need to instantiate to run a CTF contest.
It handles running scoring rounds, and dispatches service checking to the appropriate CTF::ServiceTest module.
If you would like to create additional "games" to run within the CTF Framework, this is the class you should subclass.
When subclassing this, you'll need to provide the following methods.
CTF::Contest->new();
Constructor. the base class takes no arguments.
$contest->new_round();
This method goes through the process of scoring a new round. For this class, it does the following for each service (list of services pulled from the db):
http://crew.ccs.neu.edu/wiki/CaptureTheFlag
Marc Dougherty <[email protected]>
Ian Langworth <http://langworth.com>
Copyright 2004 by Marc Dougherty
This software is released under the terms of the GPL. A copy of the GPL can be obtained here: http://www.fsf.org/licenses/gpl.html