1.overview
PC ^ 2 is a dynamic distributed system for managing, controlling programming competitions. It includes support for multi-site support, cross-platform, including Windows and UNIX, dynamic real-time update game status, and ranking, etc. This manual will provide a detailed steps for installing, configuring, and launching PC ^ 2. Need more information about PC2 (including how to get PC2 system, you can http://www.ecs.csus.edu/pc2)
PC2 is based on the C / S mode, and each site in the game runs a single PC2 Server and Client connected to the site server. Log in to the client using different accounts such as Administratior, Team, Judge, or Scoreboard. No matter how many sites in the game, the Clients of PC2 only connects to the SERVER of our own site. In the multi-site game, in order to ensure the order in the game, the site server does not illuminate with your own clients, and also contacts the Server connection with other sites. To ensure that the PC2 is running properly, you must meet the following connection requirements: (1): Must ensure that the TCP / IP protocol between Server and Client supports TCP / IP protocol (2) In multi-site competition, all hosts running Server must be able to pass TCP / IP Protocol interconnection. In addition, you should pay attention to the problem of blocking problems of the firewall, but it is not necessary to ensure the Client and all Server connections.
Some ".ini" files are read when each PC2 module is started. These files are used to initially run the configuration. Client Module Login (such as: Team, Judge, etc.) should also be adapted to your profile. Typical PC2 is configured to: Each Team Judge et al, uses different hosts, and each host runs only a client. If you run multiple Client modules on the same host, such as: A variety of accounts are logged in with the same host, then different users (such as Team, Judge) must run their own Java virtual machine, and must have their own directory (including different Installation directory).
Creating a PC2 system includes the following main steps: (1), install Java and PC2; (2), create or edit the necessary configuration files; (3), start Servers and Clients; (4), configure the PC2 server by Administrator Client; (5) Start Contest to make Teams and Judges can log in. The above steps will be listed in the next chapter.