annotate README @ 57:9307c559f9bf

rule for research expansion
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 21 Oct 2008 00:13:52 +0800
parents 9466964ae5bb
children 9356eafcdde7
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
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
6
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
7 ally.pl - list all the cities which owned by an ally.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
8 enemy.pl - list all the islands and scores the enemy have.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
9 freeland.pl - find the available place we can build the city.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
10 inactive-map.pl - finding the sheep and list them in a map.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
11 inference.pl - a simple proof-of-concept of decision making robot.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
12 scan.pl - scan the islands and cities by coordinate or default world view.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
13 scores.pl - scan and update the scores of accounts.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
14 sheep.pl - find the sheep to kill, takes coordinate or default world view.
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
15
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
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.
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
18 libclass-dbi-autoloader-perl - Class::DBI::AutoLoader
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
19 libclass-dbi-perl - Class::DBI
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
20 libclass-dbi-sqlite-perl - Class::DBI::SQLite
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
21 libhtml-tagparser-perl - HTML::TagParser;
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
22 libio-compress-zlib-perl - IO::Uncompress::Gunzip
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
23 libwww-perl - LWP
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
24 libwww-mechanize-perl - WWW::Mechanize
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
25
46
9466964ae5bb added url of debian packags.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 45
diff changeset
26 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
27
42
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
28 * 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
29 $ cat ikariam.sql|sqlite3 ikariam.sqlite
42
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
30 * Create the config file, at ${HOME}/.eagleeye.pm. The file content are
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
31 package main;
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
32
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
33 $::server = 's2.ikariam.tw';
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
34 $::user = "chihchun";
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
35 $::pass = "YOUKNOW";
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
36
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
37 1;
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
38
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
39 * Run the bot, 'perl inference.pl'
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
40 * Update the islands by runing 'perl scan.pl'
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
41 * List sheeps, 'perl sheep.pl'
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
42