-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
29 lines (18 loc) · 886 Bytes
/
README
File metadata and controls
29 lines (18 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
There is a sample bot in src/com/barracuda/contest2014/ContestBot.java.
You'll want to update the handleMessage() method, or create a subclass and
override the handleMessage() method.
Presumably you'll be using Eclipse or another IDE for java development, but if
not, a build.xml file is provided, you can compile the source and create a
runnable jar file by issuing the ant command in the current directory. Note
that you'll probably want to remove the -nowarn compiler flag from build.xml
for your own code.
$ ant
This will produce ContestBot.jar. You can then run the application from
command line:
$ java -jar ContestBot.jar [ <host> <port> ]
To remove build remnants and the jarfile:
$ ant clean
To import into Eclipse:
File | Import | General | Existing Projects into Workspace
Specify the current directory (e.g., /vagrant/contest-clients/java)
as the root directory.