comparison README @ 245:a344c54f15c7

merge work
author hychen@mluna
date Thu, 23 Oct 2008 00:47:56 +0800
parents 9fd33f9d7207
children 4dc714131954
comparison
equal deleted inserted replaced
73:c20912354d1d 245:a344c54f15c7
6 6
7 ally.pl - list all the cities which owned by an ally. 7 ally.pl - list all the cities which owned by an ally.
8 enemy.pl - list all the islands and scores the enemy have. 8 enemy.pl - list all the islands and scores the enemy have.
9 freeland.pl - find the available place we can build the city. 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. 10 inactive-map.pl - finding the sheep and list them in a map.
11 inference.pl - a simple proof-of-concept of decision making robot. 11 agent.pl - a simple proof-of-concept of decision making robot.
12 scan.pl - scan the islands and cities by coordinate or default world view. 12 scan.pl - scan the islands and cities by coordinate or default world view.
13 scores.pl - scan and update the scores of accounts. 13 scores.pl - scan and update the scores of accounts.
14 sheep.pl - find the sheep to kill, takes coordinate or default world view. 14 sheep.pl - find the sheep to kill, takes coordinate or default world view.
15 15
16 = HOWTO = 16 = HOWTO =
17 * Install *many* perl modules. 17 * Install *many* perl modules.
18 libclass-dbi-autoloader-perl - Class::DBI::AutoLoader 18 Carp::Assert - libcarp-assert-perl
19 libclass-dbi-perl - Class::DBI 19 Carp::Assert::More - libcarp-assert-more-perl
20 libclass-dbi-sqlite-perl - Class::DBI::SQLite 20 Class::DBI::AutoLoader - libclass-dbi-autoloader-perl
21 libhtml-tagparser-perl - HTML::TagParser; 21 Class::DBI - libclass-dbi-perl
22 libio-compress-zlib-perl - IO::Uncompress::Gunzip 22 Class::DBI::SQLite - libclass-dbi-sqlite-perl
23 libwww-perl - LWP 23 Decision::ParseTree - libdecision-parsetree-perl
24 libwww-mechanize-perl - WWW::Mechanize 24 HTML::TagParser; - libhtml-tagparser-perl
25 IO::Uncompress::Gunzip - libio-compress-zlib-perl
26 LWP - libwww-perl
27 WWW::Mechanize - libwww-mechanize-perl
28 YAML - libyaml-perl
25 29
26 You can download missed debian packages from http://www.assembla.com/spaces/eagle-eye/documents 30 You can download missed debian packages from http://www.assembla.com/spaces/eagle-eye/documents
27 31
28 * Create the sqlite3 database 'ikariam.sqlite' first, based on ikariam.sql 32 * Create the sqlite3 database 'ikariam.sqlite' first, based on ikariam.sql
29 $ cat ikariam.sql|sqlite3 ikariam.sqlite 33 $ cat ikariam.sql|sqlite3 ikariam.sqlite
30 * Create the config file, at ${HOME}/.eagleeye.pm. The file content are 34 * Create the config file, at ${HOME}/.eagleeye.pm. The file content are
31 package main; 35 package main;
32 36
33 $::server = 's2.ikariam.tw'; 37 $::server = 's4.ikariam.tw'; # Delta server.
34 $::user = "chihchun"; 38 $::user = "chihchun";
35 $::pass = "YOUKNOW"; 39 $::pass = "YOUKNOW";
36 40
37 1; 41 1;
38 42
39 * Run the bot, 'perl inference.pl' 43 * Run the bot, 'perl agent.pl'
40 * Update the islands by runing 'perl scan.pl' 44 * Update the islands information by runing 'perl scan.pl'
41 * List sheeps, 'perl sheep.pl' 45 * List sheeps, 'perl sheep.pl' (run scan.pl first)
42 46