Mercurial > eagle-eye
annotate README @ 133:085d2ffcf62d
igmore temp file.
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Fri, 31 Oct 2008 02:02:10 +0800 |
parents | 4dc714131954 |
children | 97dfcc0d1e3f |
rev | line source |
---|---|
46
9466964ae5bb
added url of debian packags.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
45
diff
changeset
|
1 Project Homepage: http://www.assembla.com/spaces/eagle-eye |
41
5849b6fdc76c
removed my password from scripts.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff
changeset
|
2 |
5849b6fdc76c
removed my password from scripts.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff
changeset
|
3 = Files = |
5849b6fdc76c
removed my password from scripts.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff
changeset
|
4 |
5849b6fdc76c
removed my password from scripts.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff
changeset
|
5 Ikariam.pm - Basic modules for collectoin information from web, and the web access/submit functions will be also implemented. |
42 | 6 |
7 ally.pl - list all the cities which owned by an ally. | |
8 enemy.pl - list all the islands and scores the enemy have. | |
9 freeland.pl - find the available place we can build the city. | |
10 inactive-map.pl - finding the sheep and list them in a map. | |
71
9fd33f9d7207
minor update for change inference.pl to agent.pl
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
66
diff
changeset
|
11 agent.pl - a simple proof-of-concept of decision making robot. |
42 | 12 scan.pl - scan the islands and cities by coordinate or default world view. |
13 scores.pl - scan and update the scores of accounts. | |
14 sheep.pl - find the sheep to kill, takes coordinate or default world view. | |
15 | |
16 = HOWTO = | |
45
4d59ba5905f6
addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
43
diff
changeset
|
17 * Install *many* perl modules. |
66 | 18 Carp::Assert - libcarp-assert-perl |
19 Carp::Assert::More - libcarp-assert-more-perl | |
20 Class::DBI::AutoLoader - libclass-dbi-autoloader-perl | |
21 Class::DBI - libclass-dbi-perl | |
22 Class::DBI::SQLite - libclass-dbi-sqlite-perl | |
23 Decision::ParseTree - libdecision-parsetree-perl | |
94
4dc714131954
added notes on the libraries requirement
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
71
diff
changeset
|
24 HTML::TagParser - libhtml-tagparser-perl |
4dc714131954
added notes on the libraries requirement
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
71
diff
changeset
|
25 XML::LibXML - libxml-libxml-perl |
66 | 26 IO::Uncompress::Gunzip - libio-compress-zlib-perl |
27 LWP - libwww-perl | |
28 WWW::Mechanize - libwww-mechanize-perl | |
29 YAML - libyaml-perl | |
45
4d59ba5905f6
addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
43
diff
changeset
|
30 |
46
9466964ae5bb
added url of debian packags.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
45
diff
changeset
|
31 You can download missed debian packages from http://www.assembla.com/spaces/eagle-eye/documents |
9466964ae5bb
added url of debian packags.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
45
diff
changeset
|
32 |
42 | 33 * Create the sqlite3 database 'ikariam.sqlite' first, based on ikariam.sql |
43
1dbb3e3c8691
added database init sample in the README file.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
42
diff
changeset
|
34 $ cat ikariam.sql|sqlite3 ikariam.sqlite |
42 | 35 * Create the config file, at ${HOME}/.eagleeye.pm. The file content are |
36 package main; | |
37 | |
66 | 38 $::server = 's4.ikariam.tw'; # Delta server. |
42 | 39 $::user = "chihchun"; |
40 $::pass = "YOUKNOW"; | |
41 | |
42 1; | |
43 | |
94
4dc714131954
added notes on the libraries requirement
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
71
diff
changeset
|
44 * Run the bot, 'perl agent.pl' (mark the 'eval' call in triggerAction for avoid action triggered by the bot.) |
66 | 45 * Update the islands information by runing 'perl scan.pl' |
71
9fd33f9d7207
minor update for change inference.pl to agent.pl
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
66
diff
changeset
|
46 * List sheeps, 'perl sheep.pl' (run scan.pl first) |
42 | 47 |