I require a java classes that can do the following code below:
The Loebner Prize Protocol (LPP) will be used in the 2009 will be. Each Entry Program must communicate with a "Judge Communications" program in the following manner:
The LPP is a character by character asynchronous communications protocol.
Each program, upon startup, must provide a “browse” function to select a directory. Communications shall be by means of the creation, detection, and deletion of sub-directories within the specified communications directory.
To simulate a key press the entry program must create a sub-directory within the communications directory with the following format:
“[url removed, login to view]”
where time is a monotonically increasing 18 digit number (in lexical and numerical order) (i.e. zero filled to the left) to be retrieved from the system clock and expressed as milliseconds past some initial time as defined by the system clock.
“keypress-name” is either a single letter (case sensitive) or the name of the special character, as appended to these rules.
The extension is “.other”
For example: “[url removed, login to view]”
To detect a key press by the judge, the program must detect, within the communications directory a sub-directory with the same format, but extension “.judge” and then must remove or delete the judge's sub-directory from the communications directory.
A previous version of the judge program is available at:
[url removed, login to view]
In order to run this as a Perl program, change the extension from .txt to .pl (or whatever extension is assigned to Perl programs).
Note that there will be an update to this program but the basic communications strategy will not change.