annotate README @ 362:7f38a5cb769e

dirtry trick
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Mon, 23 Feb 2009 16:26:47 +0800
parents 34fd5bcd4cf8
children 9c9d7a59420a
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.
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
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.
66
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
18 Carp::Assert - libcarp-assert-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
19 Carp::Assert::More - libcarp-assert-more-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
20 Class::DBI::AutoLoader - libclass-dbi-autoloader-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
21 Class::DBI - libclass-dbi-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
22 Class::DBI::SQLite - libclass-dbi-sqlite-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
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 XML::LibXML - libxml-libxml-perl
66
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
25 IO::Uncompress::Gunzip - libio-compress-zlib-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
26 LWP - libwww-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
27 WWW::Mechanize - libwww-mechanize-perl
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
28 YAML - libyaml-perl
45
4d59ba5905f6 addressed the modules you need to install
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 43
diff changeset
29
46
9466964ae5bb added url of debian packags.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 45
diff changeset
30 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
31
42
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
32 * 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
33 $ cat ikariam.sql|sqlite3 ikariam.sqlite
42
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
34 * 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
35 package main;
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
36
66
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
37 $::server = 's4.ikariam.tw'; # Delta server.
42
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
38 $::user = "chihchun";
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
39 $::pass = "YOUKNOW";
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
40
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
41 1;
0644b53fd3af updated documents
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 41
diff changeset
42
94
4dc714131954 added notes on the libraries requirement
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 71
diff changeset
43 * Run the bot, 'perl agent.pl' (mark the 'eval' call in triggerAction for avoid action triggered by the bot.)
66
9356eafcdde7 improved document
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents: 46
diff changeset
44 * 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
45 * List sheeps, 'perl sheep.pl' (run scan.pl first)
282
fcc5535266c2 加入多波攻擊解說進readme
billy3321@billy3321-vm
parents: 149
diff changeset
46 * Plan multi-wave attack, 'perl planner.pl targetCity navyCity armyCity wingman1.. wingman2..' All citys defined by city ID.
283
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
47
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
48 1. scan.pl 找附近的群島資訊
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
49 2. agent.pl 收集自己的兵力與座標資訊 (這個會幫你蓋東西,要小心)
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
50 3. planner.pl 自動規劃計算海陸軍出兵城
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
51 4. 改寫,並跑 planner.pl 生出來的 task.pl
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
52 task.pl 會包含你所有的兵力,兵力再依據情報與敵方狀態調整
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
53 第一波,我設定通常是攻略輸,防守高於對方攻擊力,確保撐過第一回合
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
54 第二回合就會有其他城來的兵�J[彙整,以絕對武力壓制
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
55 通常敵方會剩下一半兵力,我第一波會損兩三隻
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
56 這樣好處是容易一次就搶滿運輸船
34fd5bcd4cf8 add some explan in README
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents: 282
diff changeset
57