-
Notifications
You must be signed in to change notification settings - Fork 1
Using the GUI
Before any operations can be initiated, a contest must either be created or loaded. When loading a contest, the software will prompt you to provide it the location of the pc^2 root folder and the contest password. When creating a contest, the software prompt you to provide the location the contest will be stored. It will then check to ensure there is no other contest in the same directory, if there is, it'll prompt you to override or cancel. Finally, the software will ask you to create a contest password.
In order to add problems, you must have a problem list, which should be a specially formatted text file that provides information about the problems and their test cases.
Every two lines of the formatted text file indicates a new problem. The first line should be where the folder containing the test cases is named or what the test case without .in/.out/.dat is named. The first line is what pc^2 will use as the input file name for judging, so make sure this aligns with the name provided in the packet. The second line should be the problem's full name.
For example, if a problem is named "Hunting Practice" and the test cases are located in a folder called hunting. The text file would have the following as the lines indicating the "Hunter Practice" problem.
hunting
Hunting Practice
A full contest would have many of these lines. An example below shows a contest with 5 problems.
exampleproblem
Example Problem
greatestcommondenominator
Greatest Common Denominator
chocolatesquares
Chocolate Squares
hunting
Hunting Practice
drafting
Drafting a New Copy
When you click "Add Problems From Dir.", you will be prompted to choose a folder. The software will search for the problems indicated in the problem list. If the software finds a folder, it'll search the files in the folder for input and output files. If the software finds a file, it'll use that file for the input or output. You must follow this folder organization otherwise the software will not recognize your test cases.
Note: Input files are not required, however output files are. In addition, if one test case of a problem doesn't have an input file, all test cases of that problem shouldn't have an input file. This would cause an error.
For example, if the problem "Example Problem" had 1 test case while "Greatest Common Denominator" had 3, the folder organization would look like the following:
ROOT -
exampleproblem.out
greatestcommondenominator -
1.in
1.out
2.in
2.out
3.in
3.out
Note: exampleproblem.out doesn't have an input file as it's an ASCII problem.
Note: Numbers are not required for test case names. However, it is highly recommended. Before being added, all test cases will be sorted lexicographically.
This button sets all the settings needed for a UIL competition.
- 2 Hours Contest Time
- 40 Team Accounts, 5 Judge Accounts (can auto judge and manually judge all problems), 1 Scoreboard, 1 Administrator
All passwords will be printed to the console
- Sets default UIL scoring (+60 for correct, -5 for every wrong if problem is correct at the end)
- Sets the default languages that can be used to Java, C++, and Perl
Without confirming your changes, some actions done within the software may be lost.
pc2lib2 has a scripting feature that allows you to automate the contest creation process even more.
